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

Disassembly:
push 0xffffffffffffffff
push 0x778fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
cmp byte [0x992082], 0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x2c], 0x1b01fb4
je 0x580eda
push 0x1b01fb4
call dword [0x794290]
mov byte [esp + 0x30], 1
mov esi, dword [esp + 0x78]
add dword [0x97cb58], 1
fld dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
sub esp, 8
fstp dword [esp + 4]
xor edi, edi
fld dword [esi]
mov dword [esp + 0x7c], edi
fstp dword [esp]
call fcn.0057dbd0
fld dword [esi + 0x10]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 4]
fstp dword [esp]
call fcn.0057dbd0
add esp, 0x10
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x13]
push ecx
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x16]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x7c], 1
call fcn.00580760
mov bl, byte [esp + 0x12]
test bl, bl
je 0x58105f
mov edx, dword [ebp + 0x44]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
mov edi, dword [ecx + 0xc8]
test edi, edi
je 0x58105d
mov edi, edi
mov esi, dword [edi]
test esi, esi
je 0x581052
mov eax, dword [0x97cb58]
cmp dword [esi + 0x29c], eax
je 0x581052
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x29c], eax
mov eax, dword [esi + 0x28]
test edx, eax
je 0x581052
cmp dword [esi + 0x2a0], 0
jne 0x581052
test al, 0x10
je 0x581023
fld dword [esi + 0x170]
mov eax, dword [esp + 0x78]
fstp dword [esp + 0x4c]
push eax
fld dword [esi + 0x174]
lea ecx, [esp + 0x50]
fstp dword [esp + 0x54]
fld dword [esi + 0x17c]
fstp dword [esp + 0x5c]
fld dword [esi + 0x180]
fstp dword [esp + 0x60]
fld dword [eax + 8]
fstp dword [esp + 0x58]
fld dword [eax + 0x14]
fstp dword [esp + 0x64]
call fcn.00437990
test al, al
je 0x581052
mov eax, dword [esp + 0x84]
push eax
jmp 0x581047
mov ecx, dword [esp + 0x78]
push ecx
lea ecx, [esi + 0x170]
call fcn.00437990
test al, al
jne 0x58103f
cmp byte [esi + 0x2a4], al
je 0x581052
mov edx, dword [esp + 0x84]
push edx
push esi
call dword [esp + 0x88]
add esp, 8
mov edi, dword [edi + 4]
test edi, edi
jne 0x580f90
xor edi, edi
xor edx, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edi
test bl, bl
mov byte [esp + 0x6c], 2
je 0x5810b3
mov esi, dword [ebp + 0x44]
push 4
push 1
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
add esi, 4
mov dword [esp + 0x48], 1
call fcn.0040e110
mov edx, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, dword [esp + 0x50]
add esp, 0x14
mov dword [ecx + edx*4 - 4], eax
mov edx, dword [esp + 0x34]
xor edi, edi
cmp byte [esp + 0x13], 0
je 0x5810dc
mov eax, dword [esp + 0x74]
cmp eax, 2
jb 0x5810dc
cmp dword [ebp + 0x3c], eax
jbe 0x5810dc
mov ecx, dword [ebp + 0x44]
lea edx, [ecx + eax*4]
push edx
lea ecx, [esp + 0x38]
call fcn.0041e8d0
mov edx, dword [esp + 0x34]
cmp edx, edi
je 0x581295
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x18], eax
ja 0x581295
mov ecx, dword [esp + 0x40]
lea esp, [esp]
mov eax, edi
and eax, 0xf
shl eax, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x74], eax
ja 0x581284
mov eax, esi
and eax, 0xf
xor ebp, ebp
test edx, edx
jle 0x58126f
mov esi, dword [esp + 0x24]
add eax, esi
imul eax, eax, 0xe0
mov dword [esp + 0x28], eax
nop
mov esi, dword [esp + 0x3c]
mov esi, dword [esi + ebp*4]
mov ebx, dword [esi + 0xc]
add ebx, eax
xor edi, edi
test ecx, ecx
jle 0x581260
jmp 0x581160
mov edx, dword [esp + 0x48]
mov eax, dword [edx + edi*4]
lea edx, [eax*8]
sub edx, eax
mov esi, dword [ebx + edx*4 + 4]
test esi, esi
je 0x58124d
lea esp, [esp]
mov ecx, dword [esi]
mov eax, dword [0x97cb58]
cmp dword [ecx + 0x29c], eax
je 0x58123e
mov dword [ecx + 0x29c], eax
mov eax, dword [esp + 0x7c]
test dword [ecx + 0x28], eax
je 0x58123e
cmp dword [ecx + 0x2a0], 0
jne 0x58123e
mov edx, dword [esp + 0x78]
fld dword [edx]
fld dword [ecx + 0x17c]
fcompp
fnstsw ax
test ah, 5
jnp 0x581222
fld dword [edx + 4]
fld dword [ecx + 0x180]
fcompp
fnstsw ax
test ah, 5
jnp 0x581222
fld dword [edx + 8]
fld dword [ecx + 0x184]
fcompp
fnstsw ax
test ah, 5
jnp 0x581222
fld dword [edx + 0xc]
fld dword [ecx + 0x170]
fcompp
fnstsw ax
test ah, 0x41
je 0x581222
fld dword [edx + 0x10]
fld dword [ecx + 0x174]
fcompp
fnstsw ax
test ah, 0x41
je 0x581222
fld dword [edx + 0x14]
fld dword [ecx + 0x178]
fcompp
fnstsw ax
test ah, 0x41
jne 0x58122b
cmp byte [ecx + 0x2a4], 0
je 0x58123e
mov edx, dword [esp + 0x84]
push edx
push ecx
call dword [esp + 0x88]
add esp, 8
mov esi, dword [esi + 4]
test esi, esi
jne 0x581180
mov ecx, dword [esp + 0x40]
add edi, 1
cmp edi, ecx
jl 0x581160
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
add ebp, 1
cmp ebp, edx
jl 0x581140
mov esi, dword [esp + 0x74]
add esi, 1
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x74], esi
jbe 0x581120
mov edi, dword [esp + 0x18]
add edi, 1
cmp edi, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
jbe 0x581100
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0x70], 1
call fcn.0067abe0
mov ecx, dword [esp + 0x4c]
push ecx
mov byte [esp + 0x74], 0
call fcn.0067abe0
add esp, 8
cmp byte [0x992082], 0
je 0x5812ca
push 0x1b01fb4
call dword [0x79428c]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14