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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
je 0x654a03
mov ebp, dword [esi + 0x94]
test ebp, ebp
je 0x654a03
mov ebx, 0x10
jmp 0x6549cc
push 0x14
lea ecx, [ebp + 0x84]
dec ebx
call fcn.00643dbc
mov edi, eax
test edi, edi
je 0x6549fc
push edi
mov ecx, ebp
call fcn.0065b89c
mov ecx, edi
call fcn.00664a6c
push edi
call fcn.007152ac
add esp, 4
test ebx, ebx
jne 0x6549cc
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x6549bf
mov ebx, 0x10
lea esp, [esp]
dec ebx
push 0x14
lea ecx, [esi + 0x60]
mov dword [esp + 0x64], ebx
call fcn.00643dbc
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x655368
mov eax, dword [esi + 4]
test eax, eax
je 0x65526c
push eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x74]
call fcn.005bf78c
mov eax, edi
movzx ecx, byte [eax + 0xb]
mov ebp, dword [eax + 0x14]
xor ebx, ebx
mov bh, byte [eax + 9]
lea edi, [esp + 0x80]
mov dword [esp + 0x10], 0
mov bl, byte [eax + 0xa]
mov eax, 2
shl ebx, 8
or ebx, ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov edx, dword [esi]
xor eax, eax
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [edx + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 8], 0x11
jne 0x654ab1
test edi, edi
je 0x654ab1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
cmp eax, 3
jl 0x654ab1
mov al, byte [ebp]
inc ebp
dec ebx
test al, al
jne 0x65528c
mov eax, dword [esi + 8]
push 0
push eax
push ebx
push ebp
push edi
lea ecx, [esp + 0x78]
call fcn.006850cc
mov ecx, dword [esp + 0x64]
cmp dword [ecx + 0xc], ebx
jge 0x654b3e
mov ebp, dword [esp + 0x10]
lea edi, [esp + 0x80]
jmp 0x654adc
push 0
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], 2
mov dword [esp + 0x50], 0
call fcn.0064274c
lea eax, [esp + 0x40]
mov ecx, edi
push eax
inc ebp
add edi, 4
call fcn.005ae39c
cmp ebp, 0x40
lea ecx, [esp + 0x40]
jge 0x654b2d
call fcn.005ae32c
mov ecx, dword [esp + 0x64]
cmp dword [ecx + 0xc], ebx
mov dword [esp + 0x40], 0
jl 0x654adc
mov dword [esp + 0x10], ebp
jmp 0x654b3e
mov dword [esp + 0x10], ebp
call fcn.005ae32c
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x64]
call fcn.00681fec
mov edi, dword [esp + 0x10]
cmp edi, 3
jl 0x6552cd
mov ecx, dword [esp + 0x80]
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x654b70
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
mov eax, ecx
and eax, 7
cmp eax, 2
jne 0x654b7a
and ecx, 0x1f
mov eax, ecx
cmp eax, 4
je 0x654b88
cmp eax, 5
jne 0x65530d
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x60]
call fcn.005adeec
mov ecx, dword [esi + 8]
push eax
call fcn.005fd84c
mov ecx, dword [esp + 0x84]
mov ebx, ecx
and ebx, 7
mov eax, ebx
cmp eax, 7
mov dword [esp + 0x58], 0
mov edx, ecx
jne 0x654bd0
mov eax, ecx
and eax, 0xfffffff8
mov edx, dword [eax + 0xc]
mov eax, edx
and eax, ebx
cmp eax, 2
jne 0x654bda
and edx, 0x1f
mov eax, edx
test eax, eax
je 0x654c53
cmp eax, 1
je 0x654c53
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x18]
push 0x604b6c
push edx
call fcn.005737fc
add esp, 8
test al, al
jne 0x65515f
mov eax, dword [esp + 0x18]
push 0x604b64
push eax
call fcn.005737fc
add esp, 8
test al, al
jne 0x65515f
mov ecx, dword [esp + 0x18]
push 0x5f8730
push ecx
call fcn.005737fc
add esp, 8
test al, al
je 0x654f37
mov edx, dword [esi]
lea eax, [esp + 0x8c]
push eax
push 0
push 0
push 0
push 0
mov ecx, esi
call dword [edx + 0x18]
jmp 0x65521c
cmp ebx, 7
jne 0x654c5e
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
test cl, 7
je 0x654c6a
and ecx, 0xfffffff8
fld qword [ecx]
jmp 0x654c75
sar ecx, 3
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
call fcn.00632d5c
mov ebp, eax
cmp ebp, 1
mov dword [esp + 0x10], ebp
jne 0x654be9
mov ecx, dword [esi + 4]
push 0x604ab8
call fcn.005e177c
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x65521c
mov ecx, dword [esp + 0x18]
push 0x604b6c
push ecx
call fcn.005737fc
add esp, 8
neg al
sbb al, al
inc al
movzx edx, al
push edx
mov ecx, ebx
call fcn.005ae4fc
mov eax, dword [ebx]
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x654cd9
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
test eax, 0xffffffe0
je 0x654e1a
mov ebp, dword [esi + 0x5c]
test ebp, ebp
je 0x654dea
lea edi, [ebp + 0x228]
push edi
call dword [fcn.005f62b8]
mov ebx, dword [ebp + 0x3260]
push edi
call dword [fcn.005f62b4]
test ebx, ebx
je 0x654de6
mov edx, dword [esi + 8]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
call fcn.005ae18c
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x654d3a
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0x5fad20
and eax, 0xfffffff8
push eax
call fcn.005f77ec
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0x44
push edx
push 0x604b58
call fcn.005e42dc
mov ebp, eax
test ebp, ebp
je 0x654de6
mov ecx, dword [ebp]
mov edi, dword [ebx + 4]
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x654d7c
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
push edi
push 0x604b54
and ecx, 0xfffffff8
call fcn.005e290c
mov ecx, dword [ebp]
mov edx, ecx
and edx, 7
cmp dl, 7
jne 0x654d9d
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
fild dword [ebx + 0x10]
sub esp, 8
and ecx, 0xfffffff8
fstp qword [esp]
push 0x604b4c
call fcn.005e431c
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x654de6
mov edi, edi
mov ecx, dword [ebp]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 4]
mov ebx, ecx
and ebx, 7
cmp bl, 7
jne 0x654dd5
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
push eax
push edx
and ecx, 0xfffffff8
call fcn.005e290c
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x654dbc
mov ebx, dword [esp + 0x14]
lea edi, [esi + 0xcc]
push edi
call dword [fcn.005f62b8]
push edi
mov dword [esi + 0xe4], 0
call dword [fcn.005f62b4]
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x224]
test ecx, ecx
je 0x654e1a
call fcn.0066238c
mov eax, dword [esi + 0xc8]
test eax, eax
jne 0x65521c
mov eax, dword [esp + 0x8c]
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x654e3f
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
and eax, 0xfffffff8
mov ebp, eax
je 0x654f07
mov eax, dword [ebx]
mov edx, eax
and edx, 7
cmp dl, 7
jne 0x654e5c
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
test eax, 0xffffffe0
je 0x654f07
mov eax, dword [esi]
mov ecx, esi
xor ebx, ebx
call dword [eax + 0x1c]
test eax, eax
je 0x654e7d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov ebx, eax
push 0x604b3c
mov ecx, ebp
xor edi, edi
call fcn.005e177c
test eax, eax
je 0x654ea6
mov eax, dword [eax]
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x654ea1
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
sar eax, 3
mov edi, eax
cmp ebx, edi
je 0x654f07
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esi + 0xc8], 1
je 0x654ecd
push 0x47
mov eax, 2
push eax
push 0x5fb9f0
call fcn.005e42dc
mov edx, dword [esi]
push 0
push 0
push 0x604b24
push 0x5f8768
push 0x604a78
mov ecx, esi
call dword [edx + 0x18]
mov ecx, esi
call fcn.006541cc
mov ecx, dword [esi + 0x5c]
push 1
call fcn.00644a4c
mov dword [esi + 0xc8], 0
jmp 0x65521c
mov eax, dword [esi]
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push 0
mov ecx, esi
mov dword [esi + 0xc8], 1
call dword [eax + 0x18]
mov dword [esi + 0xc8], 0
jmp 0x65521c
mov eax, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
je 0x654f5c
mov edx, dword [esi]
add edi, 0xfffffffd
push edi
lea ecx, [esp + 0x90]
push ecx
push eax
mov eax, dword [esi + 4]
push eax
mov ecx, esi
call dword [edx + 8]
movzx ebx, al
test ebp, ebp
jbe 0x655136
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x10], 0x14
call dword [edx + 0x1c]
mov edi, eax
mov eax, dword [esi + 8]
push 0
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.0068515c
test edi, edi
je 0x654fab
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
cmp eax, 3
jl 0x654fab
mov ecx, dword [esp + 0x28]
push 0
add ecx, 4
mov dword [esp + 0x14], 0x11
call fcn.00664dac
test ebx, ebx
mov dword [esp + 0x30], 2
mov dword [esp + 0x38], 0
mov edi, 0x604b64
jne 0x654fc9
mov edi, 0x604b6c
mov ecx, dword [esi + 8]
call fcn.005eca0c
push eax
mov eax, dword [esi + 8]
push edi
push eax
lea ecx, [esp + 0x3c]
call fcn.005dce0c
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0064274c
test ebp, ebp
mov edx, dword [esi + 8]
mov dword [esp + 0x14], ebp
fild dword [esp + 0x14]
push edx
jge 0x655006
fadd qword [0x5f66f0]
sub esp, 8
lea ecx, [esp + 0x3c]
fstp qword [esp]
call fcn.005dce3c
mov ecx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x34]
push eax
call fcn.0064274c
lea ecx, [esp + 0x30]
call fcn.005ae51c
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0064274c
test ebx, ebx
jne 0x6550c6
mov edx, dword [esi + 8]
xor ebp, ebp
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 2
mov dword [esp + 0x58], ebp
call fcn.005ae59c
mov edi, dword [esp + 0x4c]
mov eax, edi
and eax, 7
cmp al, 7
jne 0x655074
and edi, 0xfffffff8
mov edi, dword [edi + 0xc]
mov ecx, dword [esi + 8]
push ebp
push 0x5fad20
and edi, 0xfffffff8
push edi
call fcn.005f77ec
push 0x5fb9d4
push 0x5f8750
mov ecx, edi
call fcn.005e290c
push 0x5f8768
push 0x5f8758
mov ecx, edi
call fcn.005e290c
push ebp
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0064274c
lea ecx, [esp + 0x4c]
call fcn.005ae32c
mov dword [esp + 0x4c], ebp
jmp 0x6550fb
mov ecx, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 2
call fcn.0054565c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.005ae39c
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0064274c
xor ebp, ebp
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
call dword [fcn.005f6554]
mov edx, dword [esp + 0x10]
and eax, 0x7fffffff
push eax
push edi
push ebx
push edx
lea ecx, [esi + 0x60]
call fcn.00644a1c
lea ecx, [esp + 0x30]
call fcn.005ae32c
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], ebp
call fcn.00681fec
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x6e0]
add eax, 0x6c8
test ecx, ecx
jbe 0x65521c
dec ecx
mov dword [eax + 0x18], ecx
mov eax, dword [eax + 0x20]
mov dword [eax + ecx*4], 2
jmp 0x65521c
mov eax, dword [esi + 0x10]
test eax, eax
lea ebp, [esi + 0x10]
je 0x65521c
mov ecx, dword [esp + 0x10]
cmp dword [eax + 0x1c], ecx
je 0x655182
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x655171
jmp 0x65521c
mov edi, dword [eax + 0x18]
test edi, edi
je 0x65521c
mov ecx, dword [esp + 0x18]
push 0x604b64
push ecx
call fcn.005737fc
add esp, 8
lea edx, [esp + 0x8c]
mov bl, al
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], bl
call fcn.005adeec
mov edx, dword [esp + 0x5c]
mov eax, dword [esi]
lea ecx, [esp + 0x3c]
push ecx
push edx
push edi
mov ecx, esi
call dword [eax + 0xc]
test al, al
jne 0x6551e7
test bl, bl
jne 0x6551e7
mov eax, dword [esi]
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push 0
mov ecx, esi
call dword [eax + 0x18]
mov eax, ebp
cmp dword [eax], 0
je 0x655214
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
cmp dword [ecx + 0x1c], edx
je 0x655203
lea eax, [ecx + 0x24]
cmp dword [eax], 0
jne 0x6551f2
jmp 0x655214
mov ecx, dword [eax]
test ecx, ecx
mov edx, dword [ecx + 0x24]
mov dword [eax], edx
je 0x655214
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.007152ac
add esp, 4
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea edi, [esp + 0x180]
mov ebx, 0x40
jmp 0x65524c
sub edi, 4
mov ecx, edi
call fcn.005ae32c
dec ebx
mov dword [edi], ebp
jne 0x65524c
lea ecx, [esp + 0x6c]
call fcn.005be29c
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.00664a6c
push edi
call fcn.007152ac
add esp, 4
test ebx, ebx
jne 0x654a0c
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
push edx
call fcn.007152ac
add esp, 4
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea esi, [esp + 0x180]
mov edi, 0x40
jmp 0x6552bc
sub esi, 4
mov ecx, esi
call fcn.005ae32c
dec edi
mov dword [esi], ebx
jne 0x6552bc
jmp 0x65534b
mov eax, dword [esp + 0x18]
push eax
call fcn.007152ac
add esp, 4
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea esi, [esp + 0x180]
mov edi, 0x40
jmp 0x6552fc
sub esi, 4
mov ecx, esi
call fcn.005ae32c
dec edi
mov dword [esi], ebx
jne 0x6552fc
jmp 0x65534b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.007152ac
add esp, 4
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea esi, [esp + 0x180]
mov edi, 0x40
jmp 0x65533c
sub esi, 4
mov ecx, esi
call fcn.005ae32c
dec edi
mov dword [esi], ebx
jne 0x65533c
lea ecx, [esp + 0x6c]
call fcn.005be29c
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00664a6c
push esi
call fcn.007152ac
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret