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

Disassembly:
sub esp, 0x58
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
mov esi, dword [esp + 0x64]
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + 0x78]
and ecx, 1
mov dword [esp + 0x14], esi
je 0x50f136
mov ebx, dword [esp + 0x6c]
push ebx
mov ecx, edi
call fcn.0050ef90
mov dword [esi], eax
push ebx
add esi, 4
push esi
mov ecx, edi
call fcn.0050f000
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00526a8a
add esp, 0x58
ret 8
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x68]
push 0
push edx
call fcn.00518050
mov ecx, dword [eax + 4]
mov dword [esp + 0xc], eax
cmp ecx, 0x400
je 0x50f15b
cmp ecx, 0x200
jne 0x50f16b
cmp dword [eax + 0x28], 0x10e
jae 0x50f16b
mov eax, 1
jmp 0x50f16d
xor eax, eax
mov ebx, dword [edi + 0x20]
movzx esi, al
mov eax, dword [edi + 0x1c]
neg esi
sbb esi, esi
lea eax, [eax + ebx - 1]
and esi, 0x10
sub ecx, 0x100
cdq
add esi, 0x14
neg ecx
sbb ecx, ecx
idiv ebx
push ebp
mov ebp, dword [edi + 0x28]
and ecx, 0x24
mov ebx, eax
lea eax, [ebx + ebp - 1]
imul ebp, esi
cdq
idiv ebx
mov edx, eax
imul edx, ecx
mov dword [esp + 0x14], eax
imul eax, ebx
add ebp, edx
cmp eax, dword [edi + 0x28]
jne 0x50f1bb
mov ebx, ebp
jmp 0x50f1c8
mov eax, dword [esp + 0x14]
imul ebx, esi
dec eax
add ebx, ecx
imul ebx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
cmp eax, 0x400
je 0x50f1dd
cmp eax, 0x200
jne 0x50f23d
mov edx, dword [esp + 0x70]
mov eax, dword [edi + 4]
add ecx, esi
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edi + 0x68]
push edx
push ebx
push eax
call fcn.00514450
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + esi + 0x1c]
mov eax, dword [esp + esi + 0x20]
mov dword [edi + 0x40], edx
mov edx, dword [esp + esi + 0x28]
mov dword [edi + 0x2c], ecx
mov ecx, dword [esp + esi + 0x24]
mov dword [edi + 0x44], eax
mov eax, dword [esp + esi + 0x2c]
mov dword [edi + 0x48], ecx
mov ecx, dword [esp + esi + 0x30]
mov dword [edi + 0x4c], edx
mov edx, dword [esp + esi + 0x34]
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + esi + 0x3c]
mov dword [edi + 0x50], eax
mov eax, dword [esp + esi + 0x38]
mov dword [edi + 0x34], edx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov edx, dword [esp + 0x10]
cmp dword [edx + 4], 0x100
je 0x50f24e
cmp ebx, ebp
je 0x50f26a
mov eax, dword [esp + 0x70]
mov ecx, dword [edi + 4]
push esi
lea edx, [esp + 0x20]
push edx
push eax
push ebp
push ecx
mov ecx, dword [edi + 0x68]
call fcn.00514450
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
pop ebp
cmp ecx, 0x400
je 0x50f288
cmp ecx, 0x200
jne 0x50f2d8
mov ecx, 0x10e
cmp dword [edx + 0x28], ecx
jae 0x50f2d8
cmp dword [edx + 0x9c], ecx
jb 0x50f2a6
cmp dword [edx + 0xa0], 0x400
jae 0x50f2d8
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
pop edi
mov dword [eax + 0xc], edx
pop esi
mov dword [eax + 0x10], ecx
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00526a8a
add esp, 0x58
ret 8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
pop edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x5c]
pop esi
pop ebx
xor ecx, esp
mov eax, 0x100
call fcn.00526a8a
add esp, 0x58
ret 8