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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d765f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, dword [ecx + 4]
lea eax, [esp + 0x3c]
push edi
push eax
mov ecx, dword [edx + ebx*4]
call fcn.0050b050
fld qword [esp + 0x48]
fadd qword [ebp + 0x14]
sub esp, 8
lea ecx, [esp + 0x110]
sub esp, 8
fstp qword [esp + 8]
fld qword [esp + 0x50]
fadd qword [ebp + 0xc]
sub esp, 8
sub esp, 8
fstp qword [esp + 0x10]
fld qword [esp + 0x68]
fsub qword [ebp + 0x14]
fstp qword [esp + 8]
fld qword [esp + 0x60]
fsub qword [ebp + 0xc]
fstp qword [esp]
call fcn.004b6cd0
xor edi, edi
mov dword [esp + 0x18], 0x5e7ad0
mov dword [esp + 0x130], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 0x5e2824
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x90]
mov byte [esp + 0x130], 2
call fcn.004ccd50
mov eax, dword [ebp + 0x1c]
xor esi, esi
mov byte [esp + 0x130], 3
mov eax, dword [eax + 8]
cmp eax, edi
jle 0x5190da
lea ecx, [ebx + ebx*4]
mov dword [esp + 0x14], ecx
jmp 0x518fdd
xor edi, edi
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x14]
cmp ebx, esi
mov eax, dword [edx + 0x2c]
mov eax, dword [eax + ecx*4 + 4]
mov dword [eax + esi*8], edi
mov dword [eax + esi*8 + 4], edi
mov eax, dword [ebp + 0x1c]
lea edi, [esi*4]
mov edx, dword [eax + 4]
mov ecx, dword [edi + edx]
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0x3ff00000
je 0x5190cc
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 4]
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [edi + eax]
push edx
call fcn.0050b0a0
mov ecx, eax
call fcn.00527050
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0x84]
push ecx
push edx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0xb0]
call fcn.004b8890
mov eax, dword [ebp + 0x1c]
mov ebx, edi
mov ecx, dword [eax + 4]
add ebx, ecx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x94]
call fcn.004b8ae0
mov edx, dword [ebx]
mov eax, dword [ebp + 0x1c]
fstp qword [edx + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
mov edi, dword [edi + ecx]
lea ecx, [esp + 0x2c]
push edi
push edx
call fcn.0040c9d0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x90]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00464860
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 8]
inc esi
cmp esi, ecx
jl 0x518fdb
xor edi, edi
mov dword [esp + 0x50], 0x5e7ad0
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x64], 0x5e2824
mov dword [esp + 0x68], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], edi
lea ecx, [esp + 0xb8]
mov byte [esp + 0x130], 5
call fcn.004ccd50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x130], 6
call fcn.004ccd50
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, edi
mov byte [esp + 0x130], 7
mov dword [esp + 0xc], ecx
jle 0x51950f
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x30]
cmp dword [edx + ecx*4], 0
je 0x5193bb
fld qword [eax + ebx + 0x18]
fadd qword [eax + ebx]
fstp qword [esp + 0x80]
fld qword [eax + ebx + 0x20]
fadd qword [eax + ebx + 8]
fstp qword [esp + 0x88]
mov ecx, dword [eax + ebx + 0xc]
mov edx, dword [eax + ebx + 8]
push ecx
mov ecx, dword [eax + ebx + 4]
push edx
mov edx, dword [eax + ebx]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
lea ecx, [esp + 0x100]
call fcn.004b8890
lea ecx, [esp + 0x80]
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0xc0]
call fcn.004b8810
push 0x40000000
push 0
push 0x3ff00000
push 0
lea ecx, [esp + 0xc8]
call fcn.004b8a70
push 0x40000000
push 0
push 0x3ff00000
push 0
lea ecx, [esp + 0xf0]
call fcn.004b8a70
mov eax, dword [esp + 0x20]
lea esi, [eax - 1]
test esi, esi
jl 0x5192d2
lea edi, [esi + esi*4]
shl edi, 3
mov dword [esp + 0x10], edi
cmp esi, dword [esp + 0xc]
je 0x5192c2
mov ecx, dword [esp + 0x30]
cmp dword [ecx + esi*4], 0
je 0x5192c2
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x90]
push edx
lea edx, [esp + 0xe4]
lea ecx, [eax + edi]
add eax, ebx
push ecx
push eax
lea eax, [esp + 0xc4]
push edx
push eax
call fcn.004b9a50
add esp, 0x14
test eax, eax
jne 0x51926a
mov ecx, dword [esp + 0x30]
mov dword [ecx + esi*4], eax
jmp 0x5192c2
cmp eax, 2
jne 0x5192c2
mov edi, dword [esp + 0x58]
push 0xffffffffffffffff
lea ecx, [esp + 0x54]
lea edx, [edi + 1]
push edx
call fcn.0051c780
mov ecx, dword [esp + 0x54]
lea eax, [edi + edi*4]
lea edx, [esp + 0x90]
lea ecx, [ecx + eax*8]
push edx
call fcn.004b8d80
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
mov edi, dword [eax + esi*4]
mov eax, dword [esp + 0x70]
mov ebx, eax
inc eax
push eax
call fcn.0046d900
mov ecx, dword [esp + 0x68]
mov dword [ecx + ebx*4], edi
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
dec esi
sub edi, 0x28
test esi, esi
mov dword [esp + 0x10], edi
jge 0x51921a
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov esi, eax
add eax, edx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x34]
call fcn.0046d900
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
test edx, edx
lea eax, [eax + esi*4]
je 0x51930a
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x5192fd
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
push 0xffffffffffffffff
lea edx, [edi + ecx]
lea ecx, [esp + 0x1c]
push edx
call fcn.0051c780
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x54]
lea ecx, [edi + edi*4]
lea edi, [eax + ecx*8]
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x51935a
mov dword [esp + 0x10], ecx
mov eax, esi
mov ecx, edi
push eax
add esi, 0x28
add edi, 0x28
call fcn.004b8d80
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x51933b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x519377
push ecx
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x54]
xor edx, edx
cmp ecx, edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], edx
je 0x5193ad
mov edx, dword [esp + 0x58]
push edx
push ecx
call fcn.0051d2d0
mov eax, dword [esp + 0x54]
push eax
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x54], 0
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
inc ecx
add ebx, 0x28
cmp ecx, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebx
jl 0x519156
mov ebx, dword [ebp + 8]
xor edi, edi
mov ecx, dword [esp + 0x34]
xor edx, edx
cmp ecx, edi
jle 0x519435
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + edx*4]
cmp esi, edi
je 0x519421
mov ecx, dword [ebp + 0x20]
mov esi, dword [esi + 0x1c]
lea edi, [ebx + ebx*4]
mov ecx, dword [ecx + 0x2c]
mov ecx, dword [ecx + edi*4 + 4]
xor edi, edi
lea ecx, [ecx + esi*8]
mov esi, dword [esp + 0xc]
fld qword [eax + esi + 0x10]
fadd qword [ecx]
fstp qword [ecx]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + edx*4]
mov byte [ecx + 0x20], 1
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
inc edx
add esi, 0x28
cmp edx, ecx
mov dword [esp + 0xc], esi
jl 0x5193e6
mov edx, dword [ebp + 0x1c]
xor eax, eax
cmp dword [edx + 8], edi
jle 0x519463
lea ebx, [ebx + ebx*4]
mov ecx, dword [ebp + 0x20]
mov esi, dword [edx + 4]
mov ecx, dword [ecx + 0x2c]
mov esi, dword [esi + eax*4]
inc eax
mov ecx, dword [ecx + ebx*4 + 4]
fld qword [ecx + eax*8 - 8]
fdiv qword [esi + 0x30]
fstp qword [ecx + eax*8 - 8]
cmp eax, dword [edx + 8]
jl 0x519442
lea ecx, [esp + 0xe0]
mov byte [esp + 0x130], 6
call fcn.0042bd50
lea ecx, [esp + 0xb8]
mov byte [esp + 0x130], 5
call fcn.0042bd50
lea ecx, [esp + 0x64]
mov byte [esp + 0x130], 4
call fcn.0040bf90
lea ecx, [esp + 0x50]
mov byte [esp + 0x130], 3
call fcn.00462c50
lea ecx, [esp + 0x90]
mov byte [esp + 0x130], 2
call fcn.0042bd50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x130], 1
call fcn.0040bf90
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 0
call fcn.00462c50
lea ecx, [esp + 0x108]
mov dword [esp + 0x130], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
jmp 0x5193d8