Function at 0x10050070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x100ff008]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edx
mov ecx, 0x10103106
mov dword [esp + 0x34], ebx
call fcn.100d96c4
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x34]
mov dword [esp + 0x3c], 0
mov esi, 0x2c
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 0
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x1c], eax
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100500e7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100500d0
mov ecx, dword [esp + 0x1c]
jmp 0x100500f3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x10]
inc eax
mov dword [esp + 0xc], eax
xor eax, eax
cmp word [edi + 0x28], ax
jne 0x10050197
cmp dword [ecx + 0x60], eax
jbe 0x1005015d
lea eax, [esp + 0x10]
push eax
push 4
call fcn.100416b0
add esp, 8
cmp byte [edi + 0x2b], 0
jne 0x10050138
mov eax, dword [edi + 4]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
test eax, eax
je 0x10050138
cmp eax, 5
je 0x1005015d
jmp 0x10050197
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.1004ee70
cmp byte [edi + 0x2b], 0
jne 0x10050177
mov eax, dword [edi + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
cmp byte [edi + 0x2b], 0
jne 0x10050177
mov eax, dword [edi + 4]
push 5
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
or eax, 0xffffffff
xor esi, esi
mov word [edi + 0x28], ax
inc esi
lea edx, [esp + 0x5c]
push esi
push 1
mov ecx, edi
call fcn.1004faf0
add esp, 8
cmp eax, 0xffffffff
je 0x10050180
mov esi, eax
test eax, eax
jne 0x1005082e
mov eax, dword [edi + 0x44]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10050283
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x70]
mov dword [esp + 0x64], 0x82067f37
mov dword [esp + 0x68], 0x18e22d00
bswap eax
mov dword [esp + 0x6c], eax
mov eax, ecx
bswap eax
mov dword [esp + 0x70], eax
test ecx, ecx
jne 0x100501e7
lea eax, [edi + 0x54]
push eax
push 8
call fcn.100416b0
add esp, 8
mov eax, dword [edi + 0x54]
lea ecx, [esp + 0x64]
mov dword [esp + 0x74], eax
xor edx, edx
mov eax, dword [edi + 0x58]
xor esi, esi
mov dword [esp + 0x78], eax
nop dword [eax]
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x7c]
cmp ecx, eax
jb 0x10050200
mov eax, esi
mov byte [edi + 0x41], 0
bswap eax
mov dword [esp + 0x7c], eax
mov eax, edx
bswap eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x24], eax
mov dword [edi + 0x50], edx
lea edx, [esp + 0x64]
mov dword [edi + 0x4c], esi
mov eax, dword [edi + 8]
push 0
push 0
mov byte [edi + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005082c
cmp byte [edi + 0x30], al
je 0x10050283
mov edx, dword [ebp + 0x14]
mov ecx, dword [edi + 8]
sar edx, 2
and edx, 3
call fcn.1003ddb0
mov esi, eax
test esi, esi
jne 0x1005082c
mov eax, dword [edi + 8]
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
add eax, 0x18
mov dword [esp + 0x5c], eax
cdq
mov ecx, eax
mov dword [esp + 0x40], edi
mov eax, edx
movlpd qword [esp + 0x48], xmm0
push eax
push ecx
push 0
push dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
call fcn.100d9890
mov ecx, eax
mov eax, edx
add ecx, 0x20
mov dword [esp + 0x14], ecx
adc eax, 0
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
test ebx, ebx
je 0x10050449
nop dword [eax + eax]
cmp dword [esp + 0xc], 0
je 0x1005038d
cmp dword [ebx + 0x10], 0
jne 0x10050309
test eax, eax
jne 0x1005038d
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.1004fe30
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, dword [esp + 0xc]
jb 0x1005038a
push dword [esp + 0x38]
lea eax, [esi - 1]
push dword [esp + 0x20]
push 0
push eax
call fcn.100d9890
add eax, 0x38
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x68]
adc edx, 0
test eax, eax
je 0x10050355
cmp esi, eax
jae 0x10050358
mov dword [edi + 0x68], esi
mov eax, dword [edi + 8]
push edx
push dword [esp + 0x14]
push dword [esp + 0x34]
mov ecx, dword [eax]
push dword [ebx + 4]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005082c
mov ecx, 0xffbf
and word [ebx + 0x1c], cx
jmp 0x1005042f
mov eax, dword [ebp + 0x10]
inc dword [esp + 0x24]
test eax, eax
je 0x100503a0
cmp dword [ebx + 0x10], 0
jne 0x100503a0
mov eax, dword [ebp + 0xc]
jmp 0x100503a2
xor eax, eax
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x84]
push edx
mov edx, dword [ebx + 0x18]
push ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x48]
push eax
call fcn.1004e240
add esp, 0xc
lea edx, [esp + 0x84]
lea ecx, [esp + 0x40]
push dword [esp + 0x20]
push dword [esp + 0x18]
push 0x18
call fcn.1004ffa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005082c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ecx, 0x18
mov edx, dword [esp + 0x10]
adc eax, esi
push eax
push ecx
push dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.1004ffa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005082c
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
adc dword [esp + 0x20], eax
or word [ebx + 0x1c], 0x40
mov dword [esp + 0x3c], ebx
mov ebx, dword [ebx + 0x10]
test ebx, ebx
je 0x1005043e
mov eax, dword [ebp + 0x10]
jmp 0x100502f0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10050757
cmp dword [edi + 0x68], 0
je 0x100505b4
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x10], ebx
lea esi, [ebx + 0x18]
call fcn.100b6e10
test eax, eax
jne 0x100507dc
test esi, esi
jle 0x100507dc
mov eax, ebx
cdq
add eax, 0x18
adc edx, 0
push edx
push eax
call fcn.1003e840
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x100507dc
mov ecx, dword [edi + 0x68]
cmp ecx, 1
jne 0x100504aa
lea esi, [ecx + 0x17]
xor edx, edx
jmp 0x100504c2
mov eax, esi
add ecx, 0xfffffffe
cdq
push edx
push eax
push 0
push ecx
call fcn.100d9890
mov esi, eax
add esi, 0x30
adc edx, 0
mov ecx, dword [edi + 8]
push edx
push esi
push 8
mov eax, dword [ecx]
push ebx
push ecx
mov eax, dword [eax + 8]
call eax
mov esi, eax
add esp, 0x14
mov eax, dword [ebx]
bswap eax
mov dword [edi + 0x4c], eax
mov eax, dword [ebx + 4]
bswap eax
mov dword [edi + 0x50], eax
mov ebx, dword [edi + 0x68]
mov dword [edi + 0x68], 0
test esi, esi
jne 0x100505a0
nop dword [eax + eax]
cmp ebx, dword [esp + 0x24]
ja 0x100505a0
mov eax, dword [esp + 0x10]
lea ecx, [ebx - 1]
lea eax, [eax + 0x18]
cdq
push edx
push eax
push 0
push ecx
call fcn.100d9890
mov ecx, dword [edi + 8]
mov esi, eax
add esi, 0x20
mov dword [esp + 0x30], esi
adc edx, 0
mov eax, dword [ecx]
push edx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 8]
add edx, 0x18
push esi
push edx
push dword [esp + 0x18]
push ecx
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10050597
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x9c]
push eax
mov edx, dword [ecx]
lea eax, [ecx + 0x18]
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
bswap eax
push eax
bswap edx
call fcn.1004e240
mov eax, dword [edi + 8]
lea edx, [esp + 0xa8]
add esp, 0xc
mov ecx, dword [eax]
push dword [esp + 0x60]
push dword [esp + 0x34]
push 0x18
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov esi, eax
inc ebx
test esi, esi
je 0x10050500
push dword [esp + 0xc]
call fcn.1003ea80
add esp, 4
test esi, esi
jne 0x1005082c
and dword [ebp + 0x14], 3
je 0x10050703
cmp byte [edi + 0x31], 0
je 0x100506ef
mov ecx, dword [edi + 8]
call fcn.1004a670
mov ebx, dword [esp + 0x20]
cdq
mov ecx, eax
add ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, edx
adc ecx, ebx
sub dword [esp + 0xc], 1
push edx
sbb ecx, 0
push eax
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x40], ecx
call fcn.100d98d0
sub dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
sbb ecx, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
cmp edx, eax
jne 0x10050625
mov dword [esp + 0x10], 1
cmp ecx, ebx
je 0x1005062d
mov dword [esp + 0x10], 0
cmp ebx, ecx
jg 0x100506e8
jl 0x10050640
cmp eax, edx
jae 0x100506e8
nop
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0xb4]
push edx
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x44]
push eax
push dword [ebp + 0xc]
mov dword [esp + 0x3c], eax
call fcn.1004e240
add esp, 0xc
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x40]
push ebx
push dword [esp + 0x18]
push 0x18
call fcn.1004ffa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005082c
mov ecx, dword [esp + 0x14]
mov eax, ebx
mov edx, dword [esp + 0x30]
add ecx, 0x18
adc eax, esi
push eax
push ecx
push dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.1004ffa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005082c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
cdq
add ecx, eax
mov dword [esp + 0x14], ecx
adc ebx, edx
inc dword [esp + 0x28]
cmp ebx, dword [esp + 0x4c]
jl 0x10050640
jg 0x100506e0
cmp ecx, dword [esp + 0x48]
jb 0x10050640
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
je 0x10050703
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x14]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov esi, eax
cmp byte [edi + 0x2f], 0
je 0x10050757
cmp dword [edi + 0x14], 0
mov ebx, dword [edi + 0x10]
jl 0x10050757
jg 0x10050718
test ebx, ebx
jb 0x10050757
push dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x20]
add eax, dword [esp + 0x2c]
push 0
push eax
call fcn.100d9890
mov ecx, dword [edi + 0x14]
add eax, 0x20
adc edx, 0
cmp edx, ecx
jl 0x10050747
jg 0x10050743
cmp eax, ebx
jbe 0x10050747
mov ebx, eax
mov ecx, edx
push ecx
push ebx
mov ecx, edi
call fcn.1004f380
add esp, 8
mov byte [edi + 0x2f], 0
mov eax, dword [esp + 0x34]
mov ebx, dword [edi + 0x44]
test eax, eax
je 0x10050791
test esi, esi
jne 0x1005082c
test byte [eax + 0x1c], 0x40
je 0x10050786
push dword [eax + 0x18]
inc ebx
mov ecx, edi
mov edx, ebx
call fcn.1004e4f0
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x10050762
test esi, esi
jne 0x1005082c
nop dword [eax]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x100507f8
dec eax
inc ebx
mov dword [esp + 0x28], eax
mov edx, ebx
mov eax, dword [esp + 0x3c]
mov ecx, edi
push dword [eax + 0x18]
call fcn.1004e4f0
mov esi, eax
add esp, 4
test esi, esi
je 0x100507a0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.100d8362
mov esp, ebp
pop ebp
ret
mov esi, 7
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.100d8362
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1005082c
mov ecx, dword [esp + 0x2c]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [edi + 0x44], ebx
mov word [edi + 0x42], ax
cmp dword [ebp + 0x10], esi
je 0x1005082c
mov eax, dword [ebp + 0xc]
mov ecx, edi
inc dword [edi + 0x3c]
mov dword [edi + 0x48], eax
call fcn.1004e1a0
mov dword [edi + 0xc], ebx
mov eax, esi
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d8362
mov esp, ebp
pop ebp
ret