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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7919e8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
mov eax, dword [edi + 0x7c]
sub eax, dword [edi + 0x78]
mov dword [esp + 0x30], edi
sar eax, 4
test eax, eax
ja 0x5983a2
call fcn.006441b7
mov eax, dword [edi + 0x78]
mov ecx, esi
call fcn.00430c20
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x48]
push ecx
push edx
push 0
push 0
call fcn.00430d10
push esi
call fcn.00430aa0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x48]
sub eax, 8
push eax
sub ecx, 8
push ecx
push 4
push 4
call fcn.00432930
mov ecx, dword [edi + 0xc0]
mov eax, esi
call fcn.00430c10
fld qword [edi + 0x100]
lea eax, [edi + 0x100]
mov dword [esp + 0x24], eax
call fcn.0076f850
fld qword [edi + 0x108]
mov ebx, eax
call fcn.0076f850
mov ecx, dword [edi + 0xe0]
sub ecx, dword [edi + 0xdc]
mov dword [esp + 0x14], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax - 1]
mov edx, dword [esp + 0x14]
lea eax, [edx + ebx + 1]
cmp ecx, eax
jge 0x59845d
mov ecx, dword [edi + 0xe0]
sub ecx, dword [edi + 0xdc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
jmp 0x598470
mov eax, dword [esp + 0x24]
fld qword [eax]
call fcn.0076f850
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx + 1]
mov eax, dword [edi + 0x12c]
mov ecx, dword [edi + 0xc0]
mov dword [esp + 0x14], edx
cmp eax, 0xffffffff
je 0x5984a3
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
jmp 0x5984b6
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jg 0x59875e
fild dword [esp + 0x18]
lea eax, [ebx*8]
sub eax, ebx
add eax, eax
add eax, eax
fstp qword [esp + 0x44]
shl ebx, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
fsub qword [ecx]
fmul qword [esp + 0x44]
call fcn.0076f850
mov ebx, eax
mov eax, dword [esp + 0x10]
add ebx, 4
mov dword [esp + 0x2c], ebx
cmp eax, dword [edi + 0x114]
je 0x598525
cmp eax, dword [edi + 0x110]
jne 0x5985e7
cmp byte [edi + 0x130], 0
je 0x5985c4
push esi
call fcn.00430aa0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x48]
sub edx, 8
push edx
push eax
push 4
push 0
call fcn.00432930
cmp dword [edi + 0x138], 0
je 0x598588
mov eax, 0x88ba50
mov ecx, esi
call fcn.00430c20
mov eax, dword [edi + 0x48]
mov ecx, dword [esp + 0x18]
sub eax, 8
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x138]
push esi
lea edi, [esp + 0x38]
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ecx
call fcn.00432a40
mov edi, dword [esp + 0x30]
jmp 0x5985b9
mov edx, dword [edi + 0x7c]
sub edx, dword [edi + 0x78]
sar edx, 4
cmp edx, 4
ja 0x59859b
call fcn.006441b7
mov eax, dword [edi + 0x78]
add eax, 0x40
mov ecx, esi
call fcn.00430c20
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x48]
push eax
push ecx
push ebx
push 0
call fcn.00430d10
mov ebx, esi
call fcn.00430bb0
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x110]
jne 0x5985e7
mov edx, dword [edi + 0x7c]
sub edx, dword [edi + 0x78]
sar edx, 4
cmp edx, 3
ja 0x5985df
call fcn.006441b7
mov eax, dword [edi + 0x78]
add eax, 0x30
jmp 0x59863a
cmp eax, dword [edi + 0x114]
jne 0x598618
mov ecx, dword [edi + 0x7c]
sub ecx, dword [edi + 0x78]
sar ecx, 4
cmp ecx, 5
jbe 0x598618
mov edx, dword [edi + 0x7c]
sub edx, dword [edi + 0x78]
sar edx, 4
cmp edx, 5
ja 0x598610
call fcn.006441b7
mov eax, dword [edi + 0x78]
add eax, 0x50
jmp 0x59863a
mov ecx, dword [edi + 0xf8]
sub ecx, dword [edi + 0xf4]
sar ecx, 4
cmp eax, ecx
jb 0x598630
call fcn.006441b7
mov eax, dword [edi + 0xf4]
add eax, dword [esp + 0x1c]
mov ecx, esi
call fcn.00430c20
mov ecx, dword [edi + 0xe0]
sub ecx, dword [edi + 0xdc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x59866b
call fcn.006441b7
mov eax, dword [edi + 0xdc]
add eax, dword [esp + 0x20]
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [esp + 0x58], cx
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
call fcn.00401880
mov dword [esp + 0x78], ebx
mov eax, dword [edi + 0xc8]
sub eax, ebx
je 0x5986e5
sub eax, 1
mov ecx, dword [edi + 0xc0]
je 0x5986c9
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x4c]
push eax
call edx
mov ebx, dword [edi + 0x48]
sub ebx, dword [edi + 0x134]
sub ebx, eax
jmp 0x5986eb
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x4c]
push edx
call eax
mov ecx, dword [edi + 0x48]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
jmp 0x5986eb
mov ebx, dword [edi + 0x134]
mov ecx, dword [edi + 0xc0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
add eax, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
add eax, dword [esp + 0x28]
push eax
push ebx
push ecx
mov eax, esi
call fcn.004316d0
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x59872a
mov edx, dword [esp + 0x50]
push edx
call fcn.006441c7
add esp, 4
add dword [esp + 0x1c], 0x10
add dword [esp + 0x20], 0x1c
xor eax, eax
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov dword [esp + 0x10], eax
jle 0x5984e4
mov ebx, esi
call fcn.00430bb0
cmp byte [edi + 0x125], 0
je 0x5987a3
mov ecx, dword [edi + 0x7c]
sub ecx, dword [edi + 0x78]
sar ecx, 4
cmp ecx, 1
ja 0x598781
call fcn.006441b7
mov eax, dword [edi + 0x78]
add eax, 0x10
mov ecx, esi
call fcn.00430c20
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x48]
dec edx
push edx
dec eax
push eax
push 0
xor eax, eax
mov ecx, esi
call fcn.00430dc0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret 4