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

Disassembly:
sub esp, 0x488
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4b0]
push edi
mov edi, dword [esp + 0x49c]
mov byte [esp + 0x13], 0
lea ecx, [ecx]
mov ecx, dword [0x85ff50]
mov edx, dword [ecx + 0x34]
mov eax, edi
and eax, 0xffff
lea eax, [eax + eax*2]
mov ebp, dword [edx + eax*4 + 8]
cmp edi, dword [esp + 0x4b0]
mov dword [esp + 0x14], ebp
je 0x5059fa
test byte [ebp + 0x10], 1
jne 0x5059fa
movsx ebx, word [ebp + 0xb4]
lea ecx, [ebx + 8]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x4a0]
test ecx, eax
je 0x5059fa
mov edx, dword [ebp + 0xac]
mov ecx, dword [esp + 0x4a8]
push edx
mov edx, dword [esp + 0x4b0]
lea eax, [ebp + 0xa0]
call fcn.004ce700
add esp, 4
test al, al
je 0x5059fa
mov eax, 1
mov ecx, ebx
shl eax, cl
test al, 2
je 0x5058b8
test dword [esp + 0x4a0], 0x400000
je 0x5058b8
mov ebx, edi
lea eax, [esp + 0x3c]
call fcn.00507650
test al, al
je 0x5059b0
mov ecx, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
push ecx
lea edx, [esp + 0x40]
push edx
lea ebx, [esp + 0x20]
call fcn.005077b0
add esp, 8
test al, al
je 0x5059b0
fld dword [esi + 0x14]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x5059b0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x24]
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
or ebx, 0xffffffff
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
xor al, al
mov word [esi], 3
mov word [esi + 0x34], bx
mov dword [esi + 0x38], edi
mov word [esi + 0x3c], bx
mov word [esi + 0x3e], bx
mov word [esi + 0x40], bx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], al
mov byte [esi + 0x4d], al
mov word [esi + 0x4e], bx
mov byte [esp + 0x13], 1
jmp 0x5059b3
lea ecx, [esp + 0x2c]
call fcn.00504fb0
test al, al
je 0x5059b0
mov edx, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x4a8]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00505100
add esp, 0x14
test al, al
je 0x5059b0
fld dword [esi + 0x14]
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 0x41
jne 0x5059b0
movsx ecx, word [esp + 0x78]
mov eax, dword [esp + 0x80]
imul ecx, ecx, 0x34
mov edx, dword [esp + 0x38]
mov dword [esi + 0x14], eax
add ecx, edx
mov edx, dword [esp + 0x84]
lea eax, [esi + 0x24]
mov word [esi], 3
call fcn.004cbf50
mov ebp, dword [esp + 0x8c]
test ebp, ebp
jns 0x50594e
mov ecx, eax
call fcn.0044db80
mov ebx, dword [esp + 0x92]
mov ecx, dword [esp + 0x30]
mov eax, ebx
call fcn.005054d0
mov cx, word [esp + 0x7a]
mov dx, word [esp + 0x78]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x7c]
mov word [esi + 0x3c], cx
mov ecx, dword [esp + 0x88]
mov word [esi + 0x3e], dx
mov dl, byte [esp + 0x90]
mov word [esi + 0x40], ax
mov al, byte [esp + 0x91]
mov dword [esi + 0x48], ebp
mov ebp, dword [esp + 0x14]
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], ecx
mov byte [esi + 0x4c], dl
mov byte [esi + 0x4d], al
mov word [esi + 0x4e], bx
mov byte [esp + 0x13], 1
or ebx, 0xffffffff
mov eax, dword [ebp + 0x118]
cmp eax, ebx
je 0x5059fd
mov ecx, dword [esp + 0x4b0]
mov edx, dword [esp + 0x4ac]
push esi
push ecx
mov ecx, dword [esp + 0x4b0]
push edx
mov edx, dword [esp + 0x4b0]
push ecx
mov ecx, dword [esp + 0x4b0]
push edx
push ecx
push eax
call fcn.00505750
add esp, 0x1c
test al, al
je 0x5059fd
mov byte [esp + 0x13], 1
jmp 0x5059fd
or ebx, 0xffffffff
mov edi, dword [ebp + 0x114]
cmp edi, ebx
jne 0x505770
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x488
ret