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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ddb86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 8]
cmp eax, 2
jl 0x580a7a
lea ecx, [esp + 0xe8]
call fcn.0056b6a0
xor edi, edi
lea ecx, [esp + 0x128]
mov dword [esp + 0x448], edi
call fcn.00589140
lea ecx, [esp + 0x68]
mov byte [esp + 0x448], 1
call fcn.004b6ca0
lea ecx, [esp + 0x88]
mov byte [esp + 0x448], 2
call fcn.004b6ca0
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x88]
push eax
push ebx
mov byte [esp + 0x450], 3
call fcn.0050b890
push 0x62a9e0
push esi
call fcn.0050b890
add esp, 0x10
lea ecx, [esp + 0x88]
push ecx
mov ecx, 0x62a9e0
call fcn.004b6dd0
mov ecx, 0x62a9e0
call fcn.004b71f0
fstp qword [0x62aae0]
push ebx
call fcn.0050b840
fstp qword [esp + 0x28]
push esi
call fcn.0050b840
fadd qword [esp + 0x2c]
add esp, 8
lea edx, [esp + 0x88]
mov ecx, 0x62a9e0
push edx
fstp qword [0x62aae8]
call fcn.004b6d90
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], 0xffffffff
dec eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
mov ecx, dword [eax]
call fcn.0050b020
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + ecx*4]
call fcn.0050b020
mov edx, dword [esp + 0x14]
fld qword [edx]
fcomp qword [eax]
fnstsw ax
test ah, 1
mov eax, dword [esi + 4]
je 0x5801eb
mov ecx, dword [eax]
call fcn.0050b020
fld qword [eax]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 1
jne 0x580231
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx + edx*4]
call fcn.0050b020
fld qword [eax + 0x10]
fcomp qword [esp + 0x98]
fnstsw ax
test ah, 0x41
jne 0x58023e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
dec eax
mov dword [esp + 0x20], eax
jmp 0x58023e
mov ecx, dword [esp + 0x20]
mov ecx, dword [eax + ecx*4]
call fcn.0050b020
fld qword [eax]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 1
je 0x580216
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
dec eax
mov dword [esp + 0x20], eax
jmp 0x58023e
mov edx, dword [esi + 4]
mov ecx, dword [edx]
call fcn.0050b020
fld qword [eax + 0x10]
fcomp qword [esp + 0x98]
fnstsw ax
test ah, 0x41
jne 0x58023e
mov dword [esp + 0x1c], 0
mov edi, 1
cmp edi, dword [esp + 0x20]
jg 0x5804ee
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
mov dword [esp + 0x14], ecx
call fcn.0050b020
push eax
lea ecx, [esp + 0x6c]
call fcn.004b6d90
push 0x3ff66666
push 0x66666666
lea ecx, [esp + 0x70]
call fcn.004b6e70
fld qword [esp + 0xa0]
fadd qword [esp + 0x90]
xor eax, eax
mov dword [esp + 0x2c], 0x5e2824
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
fmul qword [0x5e2790]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
fstp qword [esp + 0x70]
mov ecx, dword [ebx + 8]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x450], 4
call fcn.0046d900
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov edx, eax
dec eax
test edx, edx
je 0x5802f0
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
add ecx, 4
dec edx
mov dword [esp + 0x18], edx
jne 0x5802db
test edi, edi
je 0x58034e
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov ecx, dword [eax + edi*4 - 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0046d900
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + edi*4 - 4]
call fcn.0050b020
fld qword [eax]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 1
jne 0x58034e
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4 - 4]
call fcn.0050b020
fld qword [eax]
fstp qword [esp + 0x68]
mov ecx, dword [esi + 8]
dec ecx
cmp edi, ecx
je 0x5803b2
mov edx, dword [esi + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
mov eax, dword [edx + edi*4 + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.0046d900
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + edi*4 + 4]
call fcn.0050b020
fld qword [eax + 0x10]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
je 0x5803b2
mov edx, dword [esi + 4]
mov ecx, dword [edx + edi*4 + 4]
call fcn.0050b020
fld qword [eax + 0x10]
fstp qword [esp + 0x78]
lea ecx, [esp + 0x190]
call fcn.0058dea0
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x190]
push eax
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x458], 5
call fcn.0050b080
sub esp, 8
fstp qword [esp]
call fcn.00591fb0
add esp, 0x18
test al, al
je 0x58049c
sub esp, 0x20
lea edx, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004b6cb0
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x468], 5
call fcn.0050b0a0
push eax
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x150]
call fcn.00589240
push 1
push 0x58be20
push 0
lea ecx, [esp + 0xb4]
push 0x579700
lea edx, [esp + 0x1a0]
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.0050b0a0
push eax
lea ecx, [esp + 0x144]
call fcn.0058c0d0
test al, al
je 0x58049c
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0xcc]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xcc]
push edx
call dword [eax + 0xc]
lea ecx, [esp + 0x190]
mov byte [esp + 0x448], 4
call fcn.0058df70
mov dword [esp + 0x2c], 0x5e2824
mov eax, dword [esp + 0x30]
mov byte [esp + 0x448], 7
test eax, eax
je 0x5804d1
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov byte [esp + 0x448], 3
mov dword [esp + 0x2c], 0x5e262c
jle 0x580248
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x580a2a
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x14], ecx
call fcn.0050b020
push eax
lea ecx, [esp + 0x6c]
call fcn.004b6d90
push 0x3ff66666
push 0x66666666
lea ecx, [esp + 0x70]
call fcn.004b6e70
fld qword [esp + 0xa0]
fadd qword [esp + 0x90]
xor eax, eax
mov dword [esp + 0x40], 0x5e2824
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], eax
fmul qword [0x5e2790]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
fstp qword [esp + 0x70]
mov edx, dword [ebx + 8]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x450], 8
call fcn.0046d900
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x44]
mov edi, eax
dec eax
test edi, edi
je 0x58058f
inc eax
mov edi, dword [edx]
add edx, 4
mov dword [ecx], edi
add ecx, 4
dec eax
jne 0x580582
lea eax, [esp + 0x88]
mov ecx, 0x62a9e0
push eax
call fcn.004b6d90
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jle 0x5805fc
cmp edi, dword [esp + 0x1c]
je 0x5805f4
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
inc eax
mov edx, dword [ecx + edi*4]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], edx
call fcn.0046d900
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
call fcn.0050b020
push eax
mov ecx, 0x62a9e0
call fcn.004b6dd0
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x5805aa
lea ecx, [esp + 0x190]
call fcn.0058dea0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x190]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x458], 9
call fcn.0050b080
sub esp, 8
fstp qword [esp]
call fcn.00591fb0
add esp, 0x18
test al, al
je 0x580729
sub esp, 0x20
lea edx, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004b6cb0
mov ecx, edi
mov byte [esp + 0x468], 9
call fcn.0050b0a0
push eax
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x150]
call fcn.00589240
push 1
xor edi, edi
push 0x58be20
push edi
lea ecx, [esp + 0xb4]
push 0x579700
lea edx, [esp + 0x1a0]
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.0050b0a0
push eax
lea ecx, [esp + 0x144]
call fcn.0058c0d0
test al, al
je 0x58072b
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0xcc]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xcc]
push edx
call dword [eax + 0xc]
lea ecx, [esp + 0x190]
mov byte [esp + 0x448], 8
call fcn.0058df70
mov dword [esp + 0x40], 0x5e2824
mov eax, dword [esp + 0x44]
mov byte [esp + 0x448], 0xb
cmp eax, edi
je 0x58071c
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x40], 0x5e262c
jmp 0x580a2a
xor edi, edi
lea ecx, [esp + 0x190]
mov byte [esp + 0x448], 8
call fcn.0058df70
mov dword [esp + 0x40], 0x5e2824
mov eax, dword [esp + 0x44]
mov byte [esp + 0x448], 0xc
cmp eax, edi
je 0x580760
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x54], 0x5e2824
mov dword [esp + 0x58], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x450], 0xd
call fcn.0046d900
mov eax, dword [ebx + 8]
mov ebx, dword [ebx + 4]
mov ecx, dword [esp + 0x58]
mov edx, eax
dec eax
test edx, edx
je 0x5807ae
inc eax
mov edx, dword [ebx]
add ebx, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x5807a1
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov byte [esp + 0x13], 0
jle 0x580a01
cmp ebx, dword [esp + 0x1c]
je 0x58080e
mov eax, dword [esi + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x58]
mov edi, dword [eax + ebx*4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
inc eax
push eax
call fcn.0046d900
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
mov dword [ecx + edx*4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx*4]
mov eax, dword [eax + ebx*4]
push edx
push eax
call fcn.0050b160
add esp, 8
test al, al
je 0x58080c
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [esi + 8]
inc ebx
cmp ebx, eax
jl 0x5807c0
mov al, byte [esp + 0x13]
test al, al
je 0x580a01
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
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
mov bl, 0xe
push 0xffffffffffffffff
mov esi, dword [ecx + edx*4]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x450], bl
call fcn.0046d900
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x54]
push ecx
push edx
mov dword [eax], esi
call fcn.0050b890
add esp, 8
lea ecx, [esp + 0x2d0]
call fcn.0055c570
mov eax, dword [esp + 0x1c]
push edi
cmp eax, edi
mov byte [esp + 0x44c], 0xf
push edi
jne 0x58092b
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
call fcn.0050b020
fld qword [esp + 0x70]
fsub qword [eax]
sub esp, 8
lea ecx, [esp + 0x3c]
fsub qword [0x5e27a0]
fstp qword [esp]
push ecx
call fcn.004f0c50
add esp, 0x14
lea edx, [esp + 0xa8]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.004b7040
fadd qword [0x5e2850]
sub esp, 8
lea ecx, [esp + 0x2e4]
fstp qword [esp]
push edi
push edi
push 0x3ff00000
push edi
call fcn.0055e060
test al, al
je 0x5809c5
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xc4]
push eax
push ecx
lea eax, [esp + 0x38]
push edx
push eax
jmp 0x5809bd
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
call fcn.0050b020
fld qword [esp + 0x80]
fsub qword [eax + 0x10]
sub esp, 8
lea edx, [esp + 0x3c]
fadd qword [0x5e27a0]
fstp qword [esp]
push edx
call fcn.004f0c50
add esp, 0x14
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x2c]
push eax
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.004b7040
fadd qword [0x5e2850]
sub esp, 8
lea ecx, [esp + 0x2e4]
fstp qword [esp]
push edi
push edi
push 0xbff00000
push edi
call fcn.0055e060
test al, al
je 0x5809c5
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xc4]
push ecx
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.004f0c50
add esp, 0x14
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x448], bl
call fcn.0055c670
mov dword [esp + 0x2c], 0x5e2824
mov eax, dword [esp + 0x30]
mov byte [esp + 0x448], 0x10
cmp eax, edi
je 0x5809f9
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x2c], 0x5e262c
mov dword [esp + 0x54], 0x5e2824
mov eax, dword [esp + 0x58]
mov byte [esp + 0x448], 0x11
cmp eax, edi
je 0x580a22
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x54], 0x5e262c
lea ecx, [esp + 0x88]
mov byte [esp + 0x448], 2
call fcn.0042bd50
lea ecx, [esp + 0x68]
mov byte [esp + 0x448], 1
call fcn.0042bd50
lea ecx, [esp + 0x128]
mov byte [esp + 0x448], 0
call fcn.005891c0
lea ecx, [esp + 0xe8]
mov dword [esp + 0x448], 0xffffffff
call fcn.004b7310
mov ecx, dword [esp + 0x440]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret