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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x649b8c
sub esp, 0x8c
mov ecx, dword [esp + 0x90]
mov ebx, dword [ecx + 0x26c]
mov dword [esp + 0x30], ebx
mov ebp, dword [ecx + 0x268]
mov dword [esp + 0x60], ebp
mov esi, dword [ecx + 0x270]
mov dword [esp + 0x34], esi
xor eax, eax
jmp 0x64985d
lea edi, [esp + 0x64]
xor eax, eax
call fcn.004690fb
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x74], ebx
mov ebp, dword [esp + 0x90]
mov dword [esp], ebp
lea edi, [esp + 4]
lea esi, [esp + 0x64]
call fcn.004695de
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.00647d10
movzx ecx, byte [esp + 0x59]
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x34]
cmp eax, ebx
jge 0x649904
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 0x190]
mov edi, dword [edx]
mov dword [esp + 0x3c], edi
lea edi, [esp]
xor eax, eax
call fcn.004690fb
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
call ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ecx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
movzx ecx, byte [esp + 0x52]
test cl, cl
jne 0x6498db
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
movzx ecx, byte [esp + 0x4d]
test cl, 8
sete cl
jmp 0x6498dd
xor ecx, ecx
test cl, cl
je 0x6497e7
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.006489e0
mov eax, dword [esp + 0x90]
xor ecx, ecx
xor edx, edx
jmp 0x649986
mov dword [ecx + 0x26c], 0
mov dword [ecx + 0x270], 0
mov eax, dword [0x995310]
test eax, eax
je 0x649938
mov eax, dword [ecx + 0x268]
call fcn.00468e70
mov dword [edi], eax
mov eax, dword [ecx + 0x25c]
mov dword [edi + 4], eax
mov dword [ecx + 0x268], 0
lea eax, [0x758cb0]
mov dword [ecx + 0x25c], eax
mov dword [esp], ecx
call fcn.0064b8a0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x8c
ret
inc ecx
mov ebx, dword [esp + 0x24]
lea edx, [edi + ebx]
mov dword [esp + 0x24], edx
cmp dword [eax + 0x184], ecx
jle 0x649a49
cmp ecx, 0x20
jae 0x649b7f
lea ebx, [eax + ecx*8]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
cmp edx, 0x80
ja 0x649b73
lea ebx, [edx - 0x80]
neg ebx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, edx
movzx esi, byte [esp + 0x40]
movzx edi, byte [esp + 0x41]
add edi, esi
xchg edi, eax
movzx eax, al
xchg edi, eax
lea ebx, [eax + ebx + 0x1d4]
cmp edi, 0x80
ja 0x649b67
xchg esi, eax
movzx eax, al
xchg esi, eax
cmp esi, edi
ja 0x649b5e
sub edi, esi
lea edx, [esi - 0x80]
neg edx
neg edx
sar edx, 0x1f
and edx, esi
lea edx, [eax + edx + 0x100]
cmp ebp, edi
jg 0x649a15
mov edi, ebp
cmp edx, ebx
je 0x64997e
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.004697f0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
jmp 0x64997e
nop
mov dword [eax + 0x184], 0
mov byte [eax + 0x180], 0
cmp edx, 0x80
ja 0x649b52
lea edi, [esp + 0x78]
xor eax, eax
call fcn.004690fb
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x84], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x88], ebx
mov ebp, dword [esp + 0x90]
mov dword [esp], ebp
lea edi, [esp + 4]
lea esi, [esp + 0x78]
call fcn.004695de
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.00647d10
movzx ecx, byte [esp + 0x59]
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jb 0x649b4d
mov edx, dword [esp + 0x34]
sub edx, eax
sub ecx, eax
mov ebx, dword [esp + 0x90]
mov dword [ebx + 0x26c], ecx
mov dword [ebx + 0x270], edx
mov ecx, dword [0x995310]
neg edx
sar edx, 0x1f
and edx, eax
mov eax, dword [esp + 0x60]
add eax, edx
test ecx, ecx
je 0x649b1d
call fcn.00468e70
mov dword [edi], eax
mov ecx, dword [ebx + 0x268]
mov dword [edi + 4], ecx
mov dword [ebx + 0x268], eax
lea eax, [ebx + 0x1d4]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], pe_nt_image_headers32
add esp, 0x8c
ret
call fcn.00468f30
mov ecx, edx
mov edx, pe_nt_image_headers32
call fcn.00468ef0
mov eax, esi
mov ecx, edi
call fcn.00468f30
mov ecx, edi
mov edx, pe_nt_image_headers32
call fcn.00468ef0
mov eax, edx
mov ecx, pe_nt_image_headers32
call fcn.00468f30
mov eax, ecx
mov ecx, 0x20
call fcn.00468ed0
nop
call fcn.00467a60
jmp fcn.006497a0