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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x64c16d
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x3c], ebp
mov eax, dword [ebp + 0x14]
cmp byte [eax + 0x6c], 0
je 0x58dee4
lea edi, [ebp + 0x30]
call fcn.0059bee0
xor eax, eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
add eax, 0x88
mov dword [esp + 0x58], eax
mov eax, dword [eax + 4]
mov ebx, dword [eax]
mov byte [esp + 0x33], 1
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x58]
mov esi, dword [eax + 0x8c]
add eax, 0x88
cmp edi, eax
mov dword [esp + 0x48], ebx
je 0x58d4a1
call fcn.0061c63f
cmp ebx, esi
je 0x58dee4
cmp ebx, dword [edi + 4]
jne 0x58d4b3
call fcn.0061c63f
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebx + 0xb8]
jl 0x58decf
mov ecx, dword [ebx + 0xbc]
cmp eax, ecx
jle 0x58d4d5
cmp ecx, 0xffffffff
jne 0x58decf
xor esi, esi
mov byte [esp + 0x1b], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 0x38]
test eax, eax
lea edi, [ebx + 8]
je 0x58d608
mov ecx, dword [edi + 0x34]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x58d608
mov eax, dword [ebp + 0x24]
add ebp, 0x1c
cmp dword [ebp + 4], eax
mov dword [esp + 0x1c], eax
jbe 0x58d526
call fcn.0061c63f
mov eax, dword [edi + 0x30]
test eax, eax
je 0x58d549
mov ecx, dword [edi + 0x34]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x58d54e
call fcn.0061c63f
mov ebx, dword [edi + 0x30]
mov esi, dword [ebp + 8]
add ebx, dword [esp + 0x28]
cmp dword [ebp + 4], esi
mov dword [esp + 0x2c], esi
jbe 0x58d566
call fcn.0061c63f
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x58d573
call fcn.0061c63f
cmp edi, esi
je 0x58d5d2
mov ebp, dword [ebx + 0x14]
lea ebx, [ebx]
cmp dword [ebx + 0x18], 0x10
jb 0x58d58b
mov edx, dword [ebx + 4]
jmp 0x58d58e
lea edx, [ebx + 4]
mov esi, dword [edi + 0x14]
mov eax, esi
cmp eax, esi
jae 0x58d597
cmp esi, ebp
mov ecx, esi
jb 0x58d59f
mov ecx, ebp
cmp dword [edi + 0x18], 0x10
jb 0x58d5aa
mov eax, dword [edi + 4]
jmp 0x58d5ad
lea eax, [edi + 4]
push ecx
push edx
push eax
call fcn.00441a60
add esp, 0xc
test eax, eax
jne 0x58d5c9
cmp esi, ebp
jb 0x58d5c9
cmp esi, ebp
setne al
test eax, eax
je 0x58d5d2
add edi, 0x1c
cmp edi, dword [esp + 0x2c]
jne 0x58d580
mov eax, dword [esp + 0x3c]
add eax, 0x1c
cmp eax, eax
je 0x58d5e2
call fcn.0061c63f
cmp edi, dword [esp + 0x1c]
jne 0x58d5ed
mov byte [esp + 0x1b], 0
add dword [esp + 0x20], 1
add dword [esp + 0x28], 0x1c
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
jmp 0x58d4e4
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x58d735
mov ecx, dword [ebp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x58d735
lea esi, [ebx + 8]
mov eax, dword [esi + 0x44]
add esi, 0x3c
cmp dword [esi + 4], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jbe 0x58d658
call fcn.0061c63f
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x58d67b
mov ecx, dword [ebp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x58d680
call fcn.0061c63f
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ecx + 0x20]
mov ebp, dword [esi + 8]
add ebx, dword [esp + 0x28]
cmp dword [esi + 4], ebp
mov dword [esp + 0x2c], ebp
jbe 0x58d69c
call fcn.0061c63f
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x58d6a9
call fcn.0061c63f
cmp edi, ebp
je 0x58d702
mov ebp, dword [ebx + 0x14]
cmp dword [ebx + 0x18], 0x10
jb 0x58d6bb
mov edx, dword [ebx + 4]
jmp 0x58d6be
lea edx, [ebx + 4]
mov esi, dword [edi + 0x14]
mov eax, esi
cmp eax, esi
jae 0x58d6c7
cmp esi, ebp
mov ecx, esi
jb 0x58d6cf
mov ecx, ebp
cmp dword [edi + 0x18], 0x10
jb 0x58d6da
mov eax, dword [edi + 4]
jmp 0x58d6dd
lea eax, [edi + 4]
push ecx
push edx
push eax
call fcn.00441a60
add esp, 0xc
test eax, eax
jne 0x58d6f9
cmp esi, ebp
jb 0x58d6f9
cmp esi, ebp
setne al
test eax, eax
je 0x58d702
add edi, 0x1c
cmp edi, dword [esp + 0x2c]
jne 0x58d6b0
mov eax, dword [esp + 0x1c]
cmp eax, eax
je 0x58d70f
call fcn.0061c63f
cmp edi, dword [esp + 0x24]
je 0x58d71a
mov byte [esp + 0x1b], 0
add dword [esp + 0x20], 1
add dword [esp + 0x28], 0x1c
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x48]
jmp 0x58d612
mov al, byte [esp + 0x1b]
or al, byte [ebp + 0x2c]
je 0x58decf
lea esi, [esp + 0x78]
call fcn.0058cea0
mov dword [esp + 0x1c0], 0
mov edi, dword [ebp + 0x34]
mov edx, dword [edi + 4]
lea esi, [ebp + 0x30]
push eax
push edx
push edi
call fcn.0059ea40
mov ecx, esi
mov ebx, eax
call fcn.0059eae0
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x78]
mov dword [eax], ebx
mov dword [esp + 0x1c0], 0xffffffff
call fcn.0058cfa0
mov eax, dword [esi + 4]
mov ebx, dword [eax + 4]
cmp ebx, eax
mov dword [esp + 0x60], ebx
jne 0x58d79f
call fcn.0061c63f
cmp ebx, dword [esi + 4]
jne 0x58d7a9
call fcn.0061c63f
mov edi, dword [esp + 0x48]
add edi, 8
mov dword [ebx + 0xc], edi
fld qword [0x65b8f8]
fst qword [esp + 0x6c]
fld qword [ebp + 0x40]
fstp qword [esp + 0x4c]
fcomp qword [ebp + 0x40]
fnstsw ax
test ah, 0x44
jp 0x58d8a0
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x58d7e5
cmp dword [ebp + 0x18], eax
jne 0x58d8a0
lea ecx, [edi + 0x78]
call fcn.0059a980
mov ecx, dword [esp + 0x60]
lea ebp, [edi + 0x4c]
mov dword [ecx + 0x10], eax
mov byte [ecx + 0x14], 0
mov eax, dword [ebp + 4]
mov esi, dword [eax]
mov edi, ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
lea ebx, [ebx]
test edi, edi
mov ebx, dword [ebp + 4]
je 0x58d81b
cmp edi, ebp
je 0x58d820
call fcn.0061c63f
cmp esi, ebx
je 0x58dde1
test edi, edi
jne 0x58d831
call fcn.0061c63f
cmp esi, dword [edi + 4]
jne 0x58d845
call fcn.0061c63f
cmp esi, dword [edi + 4]
jne 0x58d845
call fcn.0061c63f
mov cl, byte [esi + 0xc]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ebx, dword [esp + 0x60]
mov byte [esp + 0x78], cl
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0xac]
push ecx
add ebx, 0x18
mov dword [esp + 0x90], edx
call fcn.005145d0
lea esi, [esp + 0x64]
call fcn.0059eb80
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
jmp 0x58d810
mov eax, dword [edi + 0xb8]
test eax, eax
mov dword [esp + 0x24], eax
je 0x58d8c0
fild dword [esp + 0x24]
fstp qword [esp + 0x6c]
fild dword [ebp + 0x18]
fmul qword [ebp + 0x40]
fstp qword [esp + 0x4c]
push 0x6c
call fcn.0061c130
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov dword [esp + 0x1c0], 1
je 0x58d8f0
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 0x74]
push ecx
push eax
call fcn.00590170
mov dword [esp + 0x28], eax
jmp 0x58d8f8
mov dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x1c0], 0xffffffff
add edi, 0x4c
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov ebx, dword [eax]
mov esi, edi
mov byte [esp + 0x1b], 1
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], esi
lea esp, [esp]
test esi, esi
mov ebp, dword [edi + 4]
je 0x58d93b
cmp esi, edi
je 0x58d940
call fcn.0061c63f
cmp ebx, ebp
je 0x58d9ae
test esi, esi
jne 0x58d94d
call fcn.0061c63f
cmp ebx, dword [esi + 4]
jne 0x58d957
call fcn.0061c63f
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x1c]
mov edx, dword [esp + 0x1c]
add eax, ecx
cmp ecx, edx
jge 0x58d96d
mov edx, ecx
mov dword [esp + 0x1c], edx
mov esi, dword [esp + 0x2c]
cmp eax, esi
jle 0x58d97b
mov esi, eax
mov dword [esp + 0x2c], esi
cmp edx, ecx
jne 0x58d983
cmp esi, eax
je 0x58d988
mov byte [esp + 0x1b], 0
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x58d99b
mov edx, dword [esp + 0x20]
lea eax, [edx + ebx + 2]
mov dword [esp + 0x20], eax
lea esi, [esp + 0x34]
call fcn.0059eb80
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x58d930
cmp byte [esp + 0x1b], 0
jne 0x58db2f
push 0x6c
call fcn.0061c130
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x1c0], 2
je 0x58d9eb
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x14]
mov ecx, dword [edx + 0x74]
push ecx
push eax
call fcn.00590170
mov ebx, eax
jmp 0x58d9ed
xor ebx, ebx
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x1c0], 0xffffffff
mov edx, dword [ebx]
mov edx, dword [edx + 0x78]
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x80]
push 1
push 1
mov ecx, ebx
call edx
lea eax, [esp + 0xb4]
push eax
mov ecx, ebx
call fcn.00586a30
mov dword [esp + 0x1c0], 3
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov esi, edi
xor ebp, ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov edi, edi
test esi, esi
mov ecx, dword [edi + 4]
mov dword [esp + 0x98], ecx
je 0x58da62
cmp esi, edi
je 0x58da67
call fcn.0061c63f
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x98]
je 0x58db01
test esi, esi
jne 0x58da81
call fcn.0061c63f
mov eax, dword [esp + 0x38]
cmp eax, dword [esi + 4]
jne 0x58da8f
call fcn.0061c63f
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
add eax, 8
lea ecx, [eax + 0x78]
add esi, 0x10
call fcn.0059a980
test eax, eax
je 0x58dac6
mov edx, dword [esi + 0x14]
sub edx, dword [esp + 0x1c]
push edx
push ebp
call fcn.0059a980
push eax
mov eax, esi
lea ecx, [esp + 0xc0]
call fcn.00587270
mov eax, dword [esp + 0x1c]
add dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x58daec
xor ecx, ecx
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x24]
add eax, 2
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add ebp, dword [esi + 8]
lea esi, [esp + 0x34]
call fcn.0059eb80
mov esi, dword [esp + 0x34]
jmp 0x58da50
mov esi, dword [esp + 0x48]
add esi, 8
push ebx
lea eax, [esi + 0x78]
call fcn.0059a960
lea ecx, [esp + 0xb4]
mov byte [esi + 0x80], 1
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00586b10
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov ebx, edi
mov esi, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
lea ebx, [ebx]
test ebx, ebx
mov ebp, dword [edi + 4]
je 0x58db5b
cmp ebx, edi
je 0x58db60
call fcn.0061c63f
cmp esi, ebp
je 0x58dcb1
test ebx, ebx
jne 0x58db71
call fcn.0061c63f
cmp esi, dword [ebx + 4]
jne 0x58db7b
call fcn.0061c63f
mov edi, dword [esi + 0x20]
fld qword [esp + 0x6c]
fstp dword [esp + 0x1c]
mov dword [esp + 0x24], edi
fild dword [esp + 0x24]
sub esp, 8
fmul qword [esp + 0x54]
fdiv dword [esp + 0x24]
fstp qword [esp]
call fcn.00639dc0
call fcn.006397d0
mov edx, dword [esi + 0x18]
add edx, edi
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov ebx, eax
fmul qword [esp + 0x54]
fdiv dword [esp + 0x24]
fstp qword [esp]
call fcn.0061f440
call fcn.006397d0
mov edi, dword [esi + 0x24]
mov dword [esp + 0x2c], edi
fild dword [esp + 0x2c]
sub eax, ebx
add eax, 0xffffffff
fmul qword [esp + 0x54]
xor ecx, ecx
test eax, eax
setl cl
fdiv dword [esp + 0x24]
sub ecx, 1
and ecx, eax
mov ebp, ecx
fstp qword [esp]
call fcn.00639dc0
call fcn.006397d0
mov edx, dword [esi + 0x1c]
add edx, edi
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov ebx, eax
fmul qword [esp + 0x54]
fdiv dword [esp + 0x24]
fstp qword [esp]
call fcn.0061f440
add esp, 8
call fcn.006397d0
sub eax, ebx
add eax, 0xffffffff
xor ecx, ecx
test eax, eax
setl cl
sub ecx, 1
and ecx, eax
mov edi, ecx
cmp edi, dword [esp + 0x2c]
jle 0x58dc41
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x34]
cmp esi, dword [edx + 4]
jne 0x58dc4f
call fcn.0061c63f
mov al, byte [esi + 0xc]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x60]
lea edx, [esp + 0x78]
mov byte [esp + 0x78], al
push edx
lea eax, [esp + 0xa0]
push eax
add ebx, 0x18
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], edi
call fcn.005145d0
add dword [esp + 0x20], ebp
lea esi, [esp + 0x34]
call fcn.0059eb80
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
jmp 0x58db50
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], esi
mov byte [eax + 0x14], 1
mov eax, dword [esp + 0x2c]
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
push eax
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x11c]
push eax
mov ecx, esi
call fcn.00586a30
mov dword [esp + 0x1c0], 4
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov ebx, edi
mov esi, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov edi, edi
test ebx, ebx
mov ebp, dword [edi + 4]
je 0x58dd0b
cmp ebx, edi
je 0x58dd10
call fcn.0061c63f
cmp esi, ebp
je 0x58dd8c
test ebx, ebx
jne 0x58dd1d
call fcn.0061c63f
cmp esi, dword [ebx + 4]
jne 0x58dd27
call fcn.0061c63f
mov ebp, dword [esp + 0x48]
add ebp, 0x80
mov ecx, ebp
call fcn.0059a980
test eax, eax
je 0x58dd76
cmp esi, dword [ebx + 4]
jne 0x58dd46
call fcn.0061c63f
lea eax, [esi + 0x10]
push eax
mov eax, dword [esp + 0x64]
push ecx
add esi, 0xc
push esi
add eax, 0x18
call fcn.00513920
add esp, 4
mov ecx, ebp
mov edx, eax
call fcn.0059a980
push eax
mov eax, edx
lea ecx, [esp + 0x124]
call fcn.005875b0
lea esi, [esp + 0x34]
call fcn.0059eb80
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x58dd00
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x48], 0
mov edi, dword [esp + 0x28]
je 0x58ddbe
mov edx, dword [edi]
mov esi, dword [edi + 0x28]
mov eax, dword [edx + 0x7c]
imul esi, dword [edi + 0x24]
mov ecx, edi
call eax
test esi, esi
jle 0x58ddbe
mov edi, edi
or dword [eax], 0xffffff
add eax, 4
sub esi, 1
jne 0x58ddb0
mov edx, dword [edi]
mov eax, dword [edx + 0x88]
mov ecx, edi
call eax
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00586b10
mov edi, dword [esp + 0x48]
fld qword [esp + 0x6c]
fstp dword [esp + 0x1c]
add edi, 8
fild dword [edi + 0xbc]
fld qword [esp + 0x4c]
fmul st(1), st(0)
fld dword [esp + 0x1c]
fld st(0)
fdivp st(3)
fldz
fcom st(3)
fnstsw ax
fld qword [0x679830]
test ah, 0x41
jp 0x58de19
fadd st(4), st(0)
jmp 0x58de1b
fsub st(4), st(0)
fxch st(4)
call fcn.006397d0
mov esi, dword [esp + 0x3c]
cmp eax, dword [esi + 4]
jle 0x58de2e
mov dword [esi + 4], eax
mov eax, dword [edi + 0xc4]
test eax, eax
mov dword [esp + 0x40], eax
je 0x58de51
fild dword [esp + 0x40]
fmul st(3)
fdiv st(2)
fcom st(1)
fnstsw ax
test ah, 1
jne 0x58de59
fadd st(4)
jmp 0x58de5b
fild dword [edi + 0xc8]
jmp 0x58de40
fsub st(4)
call fcn.006397d0
cmp eax, dword [esi + 0xc]
jle 0x58de68
mov dword [esi + 0xc], eax
fild dword [edi + 0xc0]
fmul st(3)
fdiv st(2)
fcom st(1)
fnstsw ax
test ah, 1
jne 0x58de7f
fadd st(4)
jmp 0x58de81
fsub st(4)
call fcn.006397d0
mov bl, byte [esp + 0x33]
test bl, bl
jne 0x58de93
cmp eax, dword [esi + 8]
jge 0x58de96
mov dword [esi + 8], eax
fild dword [edi + 0xcc]
fmulp st(3)
fxch st(2)
fdivrp st(1)
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x58deb1
faddp st(1)
jmp 0x58deb3
fsubrp st(1)
call fcn.006397d0
test bl, bl
jne 0x58dec1
cmp eax, dword [esi + 0x10]
jle 0x58dec4
mov dword [esi + 0x10], eax
mov ebx, dword [esp + 0x48]
mov byte [esp + 0x33], 0
mov ebp, esi
mov ecx, dword [esp + 0x58]
cmp ebx, dword [ecx + 4]
jne 0x58dedd
call fcn.0061c63f
mov ebx, dword [ebx]
jmp 0x58d482
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret