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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x57f940]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
jne 0x50e88e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push 8
movsx eax, word [esi + 4]
movsx ecx, word [esi + 8]
lea edi, [ecx + eax*2 + 2]
push edi
mov dword [esp + 0x5c], edi
call fcn.00547150
mov ecx, eax
add esp, 8
cmp ecx, ebx
mov dword [esp + 0x4c], ecx
jne 0x50e8c2
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edi, ebx
jle 0x50e8e0
mov edx, dword [esi + 0x18]
inc eax
cmp eax, edi
mov ebx, dword [edx + eax*8 - 8]
mov dword [ecx + eax*8 - 8], ebx
mov edx, dword [edx + eax*8 - 4]
mov dword [ecx + eax*8 - 4], edx
jl 0x50e8c8
movsx eax, word [esi + 6]
movsx ecx, word [esi + 0xa]
push 8
lea edi, [ecx + eax*2 + 2]
push edi
mov dword [esp + 0x68], edi
call fcn.00547150
mov ecx, eax
add esp, 8
test ecx, ecx
mov dword [esp + 0x34], ecx
jne 0x50e911
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
jle 0x50e92f
mov edx, dword [esi + 0x1c]
inc eax
cmp eax, edi
mov ebx, dword [edx + eax*8 - 8]
mov dword [ecx + eax*8 - 8], ebx
mov edx, dword [edx + eax*8 - 4]
mov dword [ecx + eax*8 - 4], edx
jl 0x50e917
mov eax, dword [esi]
test eax, 0x100000
je 0x50e948
movsx edi, word [esi + 0xc]
movsx ecx, word [esi + 4]
add edi, ecx
mov dword [esp + 0x24], edi
jmp 0x50e952
movsx edx, word [esi + 0xc]
mov dword [esp + 0x24], edx
mov edi, edx
test eax, 0x200000
je 0x50e969
movsx ebx, word [esi + 0xe]
movsx ecx, word [esi + 6]
add ebx, ecx
mov dword [esp + 0xc], ebx
jmp 0x50e973
movsx edx, word [esi + 0xe]
mov dword [esp + 0xc], edx
mov ebx, edx
and eax, 0x100
push 8
neg eax
sbb eax, eax
neg eax
add eax, 3
imul eax, ebx
imul eax, edi
push eax
mov dword [esp + 0x64], eax
call fcn.00547150
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [esp + 0x2c], eax
jne 0x50e9ac
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
jle 0x50eac8
jmp 0x50e9c0
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x14], ecx
jle 0x50eab5
mov ecx, dword [esp + 0x18]
lea ebx, [eax + ecx*8]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0xa8]
push esi
push ecx
call fcn.004be9a0
mov edx, dword [ebp + 8]
mov esi, eax
add esp, 0x10
mov ecx, 0xc
mov eax, dword [edx]
lea edi, [esp + 0x70]
test ah, 1
rep movsd dword es:[edi], dword [esi]
jne 0x50ea3b
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x7c]
add ebx, 8
inc eax
mov dword [ebx], edx
mov edx, dword [esp + 0x80]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x84]
inc eax
add ebx, 8
jmp 0x50ea86
fld qword [esp + 0x88]
fmul qword [esp + 0x70]
mov eax, dword [esp + 0x18]
add ebx, 8
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
inc eax
fstp qword [ebx - 8]
fld qword [esp + 0x88]
fmul qword [esp + 0x78]
add ebx, 8
inc eax
inc eax
add ebx, 8
fstp qword [ebx - 0x10]
fld qword [esp + 0x88]
fmul qword [esp + 0x80]
fstp qword [ebx - 8]
inc eax
mov esi, dword [ebp + 8]
mov dword [ebx], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x24]
add ebx, 8
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x50e9d3
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0xc]
mov edi, ecx
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, ebx
mov dword [esp + 0x10], ecx
jl 0x50e9be
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x50eb8f
cmp dword [esi + 0x20], ecx
je 0x50eb8f
mov ebx, 1
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0x20]
test edx, edx
je 0x50eb56
cmp ebx, 1
jne 0x50eaff
movsx eax, word [edx + 4]
add dword [esp + 0x1c], eax
jmp 0x50eb4f
cmp word [edx + 4], 0
mov ecx, dword [edx]
mov dword [esp + 0x10], 0
jle 0x50eb4f
mov eax, dword [esp + 0x28]
add ecx, 8
lea eax, [eax + edi*4]
mov ebx, dword [ecx - 8]
inc edi
mov dword [eax], ebx
mov ebx, dword [ecx - 4]
add eax, 4
inc edi
add ecx, 0xc
mov dword [eax], ebx
mov ebx, dword [ecx - 0xc]
add eax, 4
inc edi
mov dword [eax], ebx
mov ebx, dword [esp + 0x10]
add eax, 4
inc ebx
mov dword [esp + 0x10], ebx
movsx ebx, word [edx + 4]
cmp dword [esp + 0x10], ebx
jl 0x50eb1a
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x1c]
test edx, edx
jne 0x50eaf0
cmp ebx, 1
jne 0x50eb7d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x50eb8b
lea ecx, [eax + eax*2]
push 4
push ecx
call fcn.00547150
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x50ec79
inc ebx
cmp ebx, 2
mov dword [esp + 0x14], ebx
jle 0x50eae9
mov ebx, dword [esp + 0xc]
mov eax, dword [0x57f948]
test eax, eax
jne 0x50ebb1
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x50ebaa
mov eax, dword [eax + 0x2c]
cmp eax, 0xffffffff
jne 0x50ebbe
mov eax, 2
jmp 0x50ebbe
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xa
add eax, 2
push eax
call fcn.004b3490
mov edx, eax
xor ecx, ecx
and edx, 0xff
mov cl, ah
mov dword [esp + 0x24], edx
and ecx, 0xff
fild dword [esp + 0x24]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x1c]
shr eax, 0x10
fmul qword [0x55d868]
and eax, 0xff
push edx
lea ecx, [esp + 0x18]
fstp dword [esp + 0x6c]
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push ecx
fmul qword [0x55d868]
push esi
fstp dword [esp + 0x7c]
fild dword [esp + 0x34]
fmul qword [0x55d868]
fstp dword [esp + 0x80]
call fcn.0050ee70
add esp, 0x14
cmp eax, 1
mov dword [esp + 0x20], eax
jne 0x50ec3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x48]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push esi
call fcn.0050f1e0
add esp, 0x24
cmp eax, 1
mov dword [esp + 0x58], eax
jne 0x50ec85
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edi
push eax
xor eax, eax
mov ecx, dword [0x57f940]
cmp dword [0x57f948], eax
mov edx, dword [ecx]
sete al
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esi + 0x74]
push eax
mov eax, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x6c]
push eax
mov eax, dword [esi + 0x68]
push eax
mov eax, dword [esp + 0x8c]
push eax
movsx eax, word [esi + 6]
inc eax
push eax
mov eax, dword [esi + 0x64]
push ebx
push eax
mov eax, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x5c]
push eax
mov eax, dword [esi + 0x58]
push eax
mov eax, dword [esp + 0xc0]
push eax
movsx eax, word [esi + 4]
inc eax
push eax
mov eax, dword [esp + 0xa0]
push eax
mov eax, dword [esi]
shr eax, 8
and eax, 1
push eax
call dword [edx + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
push 8
push ecx
push edx
mov ebx, eax
call fcn.0054714a
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
push 8
push eax
push ecx
call fcn.0054714a
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x44]
push 8
push edx
push eax
call fcn.0054714a
mov eax, dword [esp + 0x4c]
add esp, 0x24
test eax, eax
je 0x50ed93
mov ecx, dword [esp + 0x1c]
push 4
lea ecx, [ecx + ecx*2]
push ecx
push eax
call fcn.0054714a
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x50edbd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 4
push edx
push eax
call fcn.0054714a
mov ecx, dword [esp + 0x24]
push 8
push 1
push ecx
call fcn.0054714a
add esp, 0x18
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x50ee39
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
push 4
push edx
push eax
call fcn.0054714a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
push 4
push ecx
push edx
call fcn.0054714a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
push 4
push eax
push ecx
call fcn.0054714a
mov edx, dword [esp + 0x68]
push 8
push 1
push edx
call fcn.0054714a
mov eax, dword [esp + 0x6c]
push 8
push 1
push eax
call fcn.0054714a
mov ecx, dword [esp + 0x7c]
push 8
push 1
push ecx
call fcn.0054714a
mov edx, dword [esp + 0x90]
add esp, 0x48
push 8
push 1
push edx
call fcn.0054714a
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50ee50
test edi, edi
je 0x50ee50
cmp dword [edi], 0
jne 0x50ee50
mov eax, 1
jmp 0x50ee52
xor eax, eax
mov ecx, dword [esi]
and eax, 1
shl eax, 0x19
and ecx, 0xfdffffff
pop edi
or eax, ecx
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret