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

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x8c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0x2c], edi
call fcn.00571010
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x3c], ebx
je 0x577a7e
mov ecx, dword [esp + 0xa8]
push ecx
mov ecx, dword [edi + 0x100]
call fcn.00411700
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x48], ebp
je 0x577a7e
mov edx, dword [esp + 0xa4]
mov ecx, dword [edi + 0x100]
push edx
call fcn.00411700
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x577a7e
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
push 4
push 0
lea edx, [esp + 0x6c]
push 2
push edx
mov dword [esp + 0x78], ecx
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x7c], eax
call fcn.00539dd0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
mov ecx, esi
call fcn.00539bd0
mov ecx, ebp
mov byte [esp + 0x12], al
call fcn.00539cc0
mov byte [esp + 0x13], al
xor edx, edx
mov dl, byte [ebx + 9]
xor eax, eax
mov al, byte [ebx + 8]
xor ecx, ecx
mov cl, byte [ebx + 0xb]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00577a90
mov dword [esp + 0x34], eax
xor edx, edx
mov dl, byte [ebx + 9]
xor eax, eax
mov al, byte [ebx + 8]
xor ecx, ecx
mov cl, byte [ebx + 0xb]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00577ba0
mov esi, dword [esp + 0xa0]
xor edx, edx
mov dl, byte [ebx + 8]
mov dword [esp + 0x38], eax
sub edx, esi
xor eax, eax
mov dword [esp + 0x5c], edx
mov al, byte [ebx + 9]
lea ecx, [esp + 0x5c]
sub eax, esi
push ecx
mov ecx, edi
mov dword [esp + 0x64], eax
call fcn.00576620
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 8]
lea ecx, [esp + 0x54]
add edx, esi
push ecx
mov dword [esp + 0x58], edx
mov al, byte [ebx + 9]
add eax, esi
mov ecx, edi
mov dword [esp + 0x5c], eax
call fcn.00576620
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 8]
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], edx
mov al, byte [ebx + 9]
push ecx
mov dword [esp + 0x7c], eax
mov ecx, edi
call fcn.00576620
mov eax, dword [edi + 0x100]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x14], esi
mov edx, dword [eax + 0xf0]
mov ecx, dword [edx + 0x88]
mov edx, dword [eax + 0x5bdc]
mov dword [esp + 0x44], ecx
mov eax, dword [edx + 0x8c]
mov ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x54]
cmp esi, eax
mov dword [esp + 0x2c], ecx
jg 0x577a7e
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
cmp ebp, eax
jg 0x577a57
mov eax, esi
shl eax, 5
mov dword [esp + 0x40], eax
jmp 0x5777eb
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
push ebp
push esi
mov ecx, dword [edx + 0xa214]
mov edx, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x4c]
mov al, byte [edx + eax + 5]
mov byte [esp + 0x19], al
call fcn.005f6a90
test al, al
je 0x577a46
cmp byte [esp + 0x11], 2
jne 0x577a46
mov ecx, dword [esp + 0x20]
push ebp
push esi
call fcn.00539bd0
cmp al, byte [esp + 0x12]
jne 0x577a46
mov ecx, dword [esp + 0x48]
push ebp
push esi
call fcn.00539bd0
cmp al, byte [esp + 0x13]
jne 0x577a46
add esi, 2
lea edi, [ebp + 2]
lea eax, [esp + 0x6c]
lea ecx, [esi - 4]
lea edx, [edi - 4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x28]
push eax
mov dword [esp + 0x74], edx
call fcn.00576620
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], edi
call fcn.00576620
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov edi, 1
mov dword [esp + 0x18], eax
jg 0x577934
shl eax, 5
mov dword [esp + 0x1c], eax
test edi, edi
je 0x577a42
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x50]
cmp esi, eax
mov dword [esp + 0x30], esi
jg 0x57790c
test edi, edi
je 0x57790c
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0xa214]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
mov al, byte [ecx + edx + 5]
cmp al, 1
je 0x5778ff
cmp al, 0x16
je 0x5778ff
cmp al, 0x17
je 0x5778ff
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x30]
mov eax, dword [ecx]
push ecx
fstp dword [esp]
fild dword [esp + 0x1c]
push ecx
fstp dword [esp]
call dword [eax + 0x134]
test eax, eax
jne 0x5778ff
xor edi, edi
mov eax, dword [esp + 0x50]
inc esi
cmp esi, eax
mov dword [esp + 0x30], esi
jle 0x5778b8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
inc eax
add edx, 0x20
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jle 0x5778a0
test edi, edi
je 0x577a42
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [ebx + 8]
xor eax, eax
mov al, byte [ebx + 9]
sub ecx, edi
mov edx, ecx
sub eax, ebp
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fsqrt
call fcn.0061318c
mov ebx, eax
call fcn.006131bd
mov edi, dword [esp + 0xa0]
push 1
cdq
lea ecx, [edi + edi*2]
mov dword [esp + 0x84], ebp
idiv ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x88]
push edx
lea edx, [esp + 0x7c]
push 0x3f800000
push edx
lea edx, [esp + 0x8c]
push edx
call dword [eax + 0x1d8]
mov esi, eax
mov eax, dword [esp + 0x34]
dec esi
neg esi
sbb esi, esi
not esi
and esi, edi
test eax, eax
jle 0x5779e4
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, 0x760e68
call fcn.00479df0
imul eax, edi
cdq
idiv dword [esp + 0x34]
mov edi, eax
neg edi
jmp 0x5779e6
xor edi, edi
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x577a0f
mov ecx, dword [esp + 0x14]
push ebp
push ecx
mov ecx, 0x7708b8
call fcn.00479df0
imul eax, dword [esp + 0xa0]
cdq
idiv dword [esp + 0x38]
neg eax
jmp 0x577a11
xor eax, eax
mov ecx, dword [esp + 0x24]
add eax, edi
mov edi, dword [esp + 0x30]
add eax, esi
add eax, edi
add eax, ebx
cmp ecx, 0xffffffff
je 0x577a2a
cmp ecx, eax
jge 0x577a3e
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x98]
mov dword [eax], edx
mov dword [eax + 4], ebp
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
inc ebp
cmp ebp, eax
jle 0x5777e7
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jle 0x5777d4
cmp dword [esp + 0x24], 0xffffffff
je 0x577a7e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c
ret 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret 0x1c