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

Disassembly:
sub esp, 0x50
mov eax, dword [0x7a39fc]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 4]
push edi
call fcn.005ed8b0
mov ecx, eax
call fcn.006359c0
mov edi, dword [esp + 0x64]
mov ebx, dword [edi + 0x34]
lea ecx, [edi + 0x28]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x68]
push ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00634cc0
mov edx, dword [eax + 0xc]
lea eax, [edi + 0x38]
push eax
mov ecx, edx
push ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x3f800000
call fcn.004a96d0
fstp dword [esp]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 4], ecx
lea ecx, [esp + 0x64]
mov dword [edx + 8], eax
call fcn.004ac960
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004a9bb0
fld dword [esp + 0x34]
fadd dword [eax + 8]
add esp, 0xc
fld dword [esp + 0x24]
push 0
fadd dword [eax + 4]
push 1
fld dword [esp + 0x28]
lea edx, [esp + 0x34]
fadd dword [eax]
push edx
mov ecx, esi
fstp dword [esp + 0x38]
fstp dword [esp + 0x3c]
fstp dword [esp + 0x40]
call fcn.004cb120
mov ecx, eax
call fcn.004bc380
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea eax, [edi + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [edi + 0x24], ebx
mov eax, dword [esi + 0x340]
mov ecx, 0x7f000000
mov dword [eax + 0x254], ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add eax, 0x258
mov edx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x3f000000
call fcn.004cb120
mov ebp, dword [esi + 0xe8]
add eax, 0x11c
mov eax, dword [eax + 4]
push 0x3d
mov ecx, esi
mov dword [esp + 0x20], eax
mov dword [esi + 0xe8], 1
call fcn.00518940
test eax, eax
mov ebx, 0xffff
je 0x51ad97
movzx ebx, word [eax + 0x6c]
mov ecx, dword [esi + 0x340]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004cb120
mov ecx, eax
call fcn.004be5e0
test eax, eax
je 0x51ae7c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
push 2
lea ecx, [esp + 0x4c]
push ecx
push 1
lea edx, [esp + 0x58]
push edx
push 3
lea eax, [esp + 0x64]
push eax
push 3
lea ecx, [esp + 0x84]
push ecx
push 2
lea edx, [esp + 0x88]
push edx
push 2
lea eax, [esp + 0x8c]
push eax
push 2
push ebx
push 0x40
mov ecx, esi
call fcn.004ccb00
push 0
push 0
push 0
mov edx, dword [esi + 0x8c]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41f00000
push 0
push 1
push 0x7f000000
push edx
lea eax, [esp + 0x68]
push eax
push 0xfffe
mov ecx, esi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call fcn.004f8a50
mov dword [edi + 4], 6
jmp 0x51af5a
mov edx, dword [esi + 0x340]
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
push 0x40400000
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004cb120
mov ecx, eax
call fcn.004be860
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push 2
lea edx, [esp + 0x4c]
push edx
push 1
lea eax, [esp + 0x58]
push eax
push 3
lea ecx, [esp + 0x64]
push ecx
push 3
lea edx, [esp + 0x78]
push edx
push 2
lea eax, [esp + 0x7c]
push eax
push 2
lea ecx, [esp + 0x80]
push ecx
push 2
push ebx
push 0x40
mov ecx, esi
call fcn.004ccb00
push 0
push 0
push 0
mov eax, dword [esi + 0x8c]
lea edx, [esp + 0x44]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41f00000
push 0
push 1
push 0x7f000000
push eax
lea ecx, [esp + 0x5c]
push ecx
push 0xfffe
mov ecx, esi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call fcn.004f8a50
mov dword [edi + 4], 7
mov dword [esi + 0xa8c], 0xffffffff
mov dword [esi + 0xe8], ebp
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
call fcn.005ed8b0
mov eax, dword [eax + 0x24]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
call fcn.004aea30
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 8]
push eax
call fcn.004ae770
test eax, eax
je 0x51afb5
add eax, 0x90
mov edx, dword [eax]
lea ecx, [edi + 0x74]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov dword [edi + 0x68], 1
mov eax, dword [0x745dc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10