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

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [ebx]
movzx eax, byte [ebx + 0x92]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
test dword [esi + 0x1c], 0x4000
je 0x64fdda
mov ecx, dword [esp + 0x38]
push ebp
mov ebp, 0xfff0bdc0
mov dword [esp + 0xc], ebp
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x64f880
mov edx, dword [esi + 0x14]
xor ebp, ebp
mov dword [esp + 0xc], ebp
test edx, edx
jle 0x64f880
mov eax, dword [esi + 0x10]
add eax, 0xc
nop
cmp dword [eax], ecx
je 0x64f87c
inc ebp
add eax, 0x10
cmp ebp, edx
jl 0x64f870
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 0x10]
mov ecx, ebp
mov ebp, dword [esp + 0x3c]
add ecx, ecx
mov edx, dword [esp + 0x48]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x28], eax
test edi, edi
je 0x64fbcd
jmp 0x64f8b0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
test edx, edx
je 0x64f90d
mov ecx, dword [ebp]
mov eax, dword [edi + 8]
test ecx, ecx
jne 0x64f8dc
neg eax
sbb eax, eax
jmp 0x64f8ee
test eax, eax
je 0x64f8f2
push eax
push ecx
call fcn.006678a0
mov edx, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x64f909
push dword [esp + 0x50]
push edx
push edi
push ebp
call fcn.0061a270
add esp, 0x10
test eax, eax
je 0x64fbba
mov eax, dword [esp + 0x28]
cmp byte [ebx + 0x92], 0
push eax
push dword [edi + 8]
je 0x64f925
push esi
call fcn.0064ed50
add esp, 0xc
jmp 0x64f930
push 0
push ebx
call fcn.0065aab0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x64facf
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
push ebx
call fcn.00650030
add esp, 0x14
test eax, eax
jne 0x64facb
mov eax, dword [esp + 0x24]
test eax, eax
je 0x64f969
mov ecx, eax
mov dword [esp + 0x18], eax
jmp 0x64f978
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
xor ebp, ebp
cmp dword [edi + 0x14], ebp
jle 0x64f9e3
nop
mov eax, dword [esp + 0x40]
movsx eax, word [eax + 0x28]
cmp dword [ecx + ebp*4], eax
jne 0x64f994
mov dword [ecx + ebp*4], 0xffffffff
cmp dword [esi + 0x130], 0
je 0x64f9dd
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x64f9b2
mov eax, dword [eax + 4]
movsx ecx, word [eax + ebp*2]
jmp 0x64f9b6
movsx ecx, word [edx + 0x28]
mov eax, dword [edx + 4]
add ecx, ecx
push dword [esp + 0x10]
push dword [eax + ecx*8]
push dword [edx]
push ebx
call fcn.00640800
xor ecx, ecx
add esp, 0x10
cmp eax, 2
sete cl
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
inc ebp
cmp ebp, dword [edi + 0x14]
jl 0x64f980
mov ebp, dword [esp + 0x14]
push dword [ebp]
push 0
push dword [ebp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.00667af0
inc dword [ebx + 0x28]
add esp, 0x14
mov eax, dword [esp + 0x44]
test eax, eax
je 0x64fa25
push dword [esp + 0x20]
push 0xffffffffffffffff
push eax
push dword [esp + 0x24]
push edi
push dword [esp + 0x30]
push ebp
push dword [esp + 0x2c]
push ebx
call fcn.0061a2d0
add esp, 0x24
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x64fa76
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x64fa36
mov eax, ebx
mov eax, dword [eax + 0x1cc]
test eax, eax
je 0x64fa58
mov eax, dword [eax]
cmp eax, dword [edi + 0x1c]
jne 0x64fa4d
cmp byte [edi + 0x19], 7
je 0x64fa76
cmp eax, dword [edi + 0x20]
jne 0x64fa58
cmp byte [edi + 0x1a], 7
je 0x64fa76
push dword [esp + 0x20]
push 1
push ecx
push dword [esp + 0x24]
push edi
push dword [esp + 0x30]
push ebp
push dword [esp + 0x2c]
push ebx
call fcn.0061a2d0
add esp, 0x24
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x64fbb6
cmp dword [esi + 0x1d0], 0
je 0x64fa9a
push ecx
push esi
call fcn.006311f0
add esp, 8
jmp 0x64fbb6
cmp ecx, dword [esi + 0x128]
jb 0x64fabd
cmp ecx, dword [esi + 0x12c]
jae 0x64fabd
mov eax, dword [esi + 0x124]
mov dword [ecx], eax
mov dword [esi + 0x124], ecx
jmp 0x64fbb6
push ecx
call fcn.006014a0
add esp, 4
jmp 0x64fbb6
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x2c], 0
je 0x64fdd8
cmp byte [esi + 0x49], 0
jne 0x64fdd8
test eax, eax
jne 0x64fbba
mov ebp, dword [ebx + 8]
test ebp, ebp
jne 0x64fb0f
cmp dword [ebx + 0x78], ebp
jne 0x64fb04
mov eax, dword [ebx]
test byte [eax + 0x44], 8
jne 0x64fb04
mov byte [ebx + 0x17], 1
push ebx
call fcn.0066c560
add esp, 4
mov ebp, eax
mov edx, dword [edi + 0x14]
mov dword [esp + 0x24], 0
lea eax, [edx + 1]
add eax, dword [ebp + 0x88]
mov dword [esp + 0x20], eax
test edx, edx
jle 0x64fb5d
mov esi, dword [esp + 0x24]
lea ebx, [edi + 0x24]
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [ebx]
inc ecx
add eax, ecx
push eax
push 0x32
push ebp
call fcn.0066bba0
mov eax, dword [esp + 0x30]
lea ebx, [ebx + 8]
inc esi
add esp, 0x10
cmp esi, dword [edi + 0x14]
jl 0x64fb32
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x88]
movzx edx, byte [edi + 0x18]
cmp dword [eax + 0x30], ecx
jg 0x64fb84
push 0
push 0xffffffffffffffff
push edx
push 0x91
push ebp
call fcn.0062e2b0
add esp, 0x14
jmp 0x64fbb6
lea eax, [ecx + 1]
mov dword [ebp + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebp + 0x58]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebp, dword [esp + 0x40]
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
test edi, edi
jne 0x64f8b0
mov eax, dword [ebp + 0x48]
push 0
push dword [ebp]
add eax, 0x38
push eax
call fcn.006198b0
add esp, 0xc
mov edi, dword [eax + 8]
mov dword [esp + 0x3c], edi
test edi, edi
je 0x64fdd8
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
test eax, eax
je 0x64fc1f
push dword [esp + 0x50]
push eax
push edi
push ebp
call fcn.0061abb0
add esp, 0x10
test eax, eax
je 0x64fdc9
cmp byte [edi + 0x18], 0
jne 0x64fc3e
test dword [esi + 0x1c], 0x80000
jne 0x64fc3e
cmp dword [ebx + 0x78], 0
jne 0x64fc3e
cmp byte [ebx + 0x14], 0
je 0x64fdc9
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
push ebp
push ebx
call fcn.00650030
add esp, 0x14
test eax, eax
je 0x64fc71
cmp dword [esp + 0x2c], 0
je 0x64fdd8
cmp byte [esi + 0x49], 0
jne 0x64fdd8
jmp 0x64fdc9
push 0
push 0x58
push esi
call fcn.006478f0
mov ebp, dword [esp + 0x30]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x64fd7e
push 0x50
lea eax, [edi + 8]
mov dword [edi + 4], 1
push 0
push eax
mov dword [edi], 1
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi + 0x38], 0xffffffff
cmp byte [esi + 0x49], 0
jne 0x64fd74
mov eax, dword [edi]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
lea eax, [eax + eax*4]
add eax, eax
mov dword [edi + eax*8 - 0x40], 0
mov dword [edi + eax*8 - 0x44], 0
mov eax, dword [ecx]
mov dword [edi + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
inc dword [eax + 0x20]
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x38], eax
inc dword [ebx + 0x28]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x64fd18
push 0xffffffffffffffff
push eax
push ebp
push ecx
push edx
push dword [esp + 0x54]
push edi
push ebx
call fcn.0061acc0
mov ecx, dword [esp + 0x5c]
add esp, 0x20
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x44], 0
je 0x64fd6d
push 1
push dword [esp + 0x48]
xor eax, eax
cmp dword [esp + 0x54], eax
push ebp
push ecx
push edx
push dword [esp + 0x54]
setne al
push edi
push ebx
movzx eax, byte [eax + ecx + 0x19]
mov dword [esp + 0x54], eax
call fcn.0061acc0
mov eax, dword [esp + 0x5c]
add esp, 0x20
cmp byte [eax + 0x18], 0
jne 0x64fd6d
mov eax, dword [esp + 0x34]
cmp eax, 9
je 0x64fd6d
cmp eax, 7
je 0x64fd6d
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x64fd69
mov eax, ebx
mov byte [eax + 0x15], 1
mov dword [edi + 0x10], 0
push edi
push esi
call fcn.006668d0
add esp, 8
test ebp, ebp
je 0x64fdc1
cmp dword [esi + 0x1d0], 0
je 0x64fd97
push ebp
push esi
call fcn.006311f0
add esp, 8
jmp 0x64fdc1
cmp ebp, dword [esi + 0x128]
jb 0x64fdb8
cmp ebp, dword [esi + 0x12c]
jae 0x64fdb8
mov eax, dword [esi + 0x124]
mov dword [ebp], eax
mov dword [esi + 0x124], ebp
jmp 0x64fdc1
push ebp
call fcn.006014a0
add esp, 4
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x64fbf0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret