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

Disassembly:
mov ecx, dword [0x95eda0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x6411f4
sub esp, 0x88
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 0x10]
test edx, edx
jne 0x6408d2
xor ebx, ebx
xor esi, esi
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
xor ecx, ecx
jmp 0x640904
mov eax, dword [edx]
mov dword [esp], ecx
mov ebx, dword [esp + 0x90]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], ebx
call eax
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x8c]
movzx edi, byte [edx + 5]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x6411e2
mov dword [esp + 0x40], ebp
mov dword [esp + 0x84], eax
mov byte [esp + 0x23], cl
test ebx, ebx
jne 0x64099e
movzx edi, byte [edx + 4]
xchg edi, eax
test al, al
xchg edi, eax
je 0x64099e
test ebp, ebp
jne 0x64099e
lea eax, [0x6d0e00]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov ecx, dword [0x95f020]
test ecx, ecx
jne 0x640966
mov ecx, dword [esp + 0x84]
jmp 0x640974
call fcn.004717c0
mov ecx, dword [esp + 0x84]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], 2
lea edx, [0x6f68d5]
mov dword [eax + 8], edx
movzx ecx, byte [esp + 0x23]
mov edx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x40]
lea ebx, [0x7633d0]
mov esi, eax
lea edi, [esp + 0x4c]
xor eax, eax
call fcn.00471a58
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebp
movzx eax, byte [esp + 0x23]
jmp 0x6409d7
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x40]
mov edi, eax
mov eax, esi
mov esi, edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x34], ebx
mov edi, dword [esp + 0x60]
lea ecx, [esp + 0x4c]
cmp dword [ecx + 4], edi
jle 0x640d19
mov byte [esp + 0x23], al
mov dword [esp], ecx
call fcn.00641b80
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x640ab3
mov edx, dword [esp + 0x34]
test edx, edx
je 0x640a2b
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x84]
lea ebp, [0x6f68d5]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x74]
jmp 0x640aa9
mov ebx, dword [esp + 0x8c]
movzx ebp, byte [ebx + 4]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x640a57
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x84]
lea ebp, [0x6f68d5]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x74]
jmp 0x640aa9
lea eax, [0x6d0e00]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov edx, dword [0x95f020]
test edx, edx
jne 0x640a83
mov edx, dword [esp + 0x84]
jmp 0x640a91
call fcn.004717c0
mov edx, dword [esp + 0x84]
mov dword [edi], edx
mov dword [eax], edx
mov dword [eax + 0xc], 2
lea ebp, [0x6f68d5]
mov dword [eax + 8], ebp
lea ebx, [0x7633d0]
movzx esi, byte [esp + 0x23]
jmp 0x640c81
mov edx, dword [esp + 4]
cmp ecx, 4
jge 0x640ac0
xor eax, eax
jmp 0x640aef
mov dword [esp + 0x30], ecx
mov dword [esp + 0x70], edx
mov dword [esp], edx
lea eax, [0x6f717e]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
call fcn.004024a0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x70]
test al, al
jne 0x640b33
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x640b01
mov esi, dword [esp + 0x74]
jmp 0x640b20
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00641f80
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
movzx ecx, byte [esp + 0x23]
mov eax, ebx
mov ebx, dword [esp + 0x8c]
jmp 0x640c6a
cmp ecx, 4
jb 0x6411c7
lea eax, [ecx - 4]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 4
add eax, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00642420
mov eax, dword [esp + 0x10]
test eax, eax
je 0x640b92
mov edx, dword [esp + 0x34]
test edx, edx
je 0x640b6f
mov eax, edx
mov esi, dword [esp + 0x74]
jmp 0x640b73
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x84]
lea ebp, [0x6f68d5]
mov ebx, eax
mov eax, esi
movzx esi, byte [esp + 0x23]
jmp 0x640c81
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
movzx edx, byte [esp + 0x23]
test dl, dl
je 0x640bb2
mov edx, 1
jmp 0x640bd1
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00639e10
mov eax, dword [esp + 8]
test eax, eax
setne al
mov ecx, dword [esp + 0x28]
mov edx, eax
mov eax, dword [esp + 0x48]
mov byte [esp + 0x23], dl
lea ebx, [esp + 0x4c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00641c60
mov eax, dword [esp + 0x34]
test eax, eax
je 0x640bfe
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x74]
jmp 0x640c3a
mov ebx, dword [esp + 0x8c]
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x640c12
mov esi, dword [esp + 0x74]
jmp 0x640c3a
mov eax, dword [edx]
mov dword [esp], ebx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x28]
mov dword [esp + 8], ebp
call eax
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, ebx
mov ebx, dword [esp + 0x8c]
test eax, eax
jne 0x640c65
mov dword [esp], ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call fcn.00641f80
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x8c]
movzx ecx, byte [esp + 0x23]
mov edx, dword [esp + 0x84]
lea ebp, [0x6f68d5]
mov ebx, eax
mov eax, esi
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x68]
lea ebp, [edi + 1]
mov dword [esp + 0x68], ebp
mov edx, dword [esp + 0x54]
test edx, edx
je 0x640cdd
mov ecx, dword [esp + 0x58]
cmp ecx, ebp
jle 0x640cc4
mov dword [esp + 0x80], eax
lea eax, [ecx - 1]
cmp eax, ebp
jne 0x640cd1
cmp ecx, ebp
jbe 0x6411c0
lea eax, [edx + edi*8 + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x640cd1
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x60], ecx
jmp 0x6409bf
mov eax, dword [esp + 0x80]
jmp 0x6409bf
mov edx, dword [esp + 0x64]
lea ebp, [edx + 1]
mov dword [esp + 0x60], ebp
mov edi, dword [esp + 0x50]
lea ecx, [edi - 1]
cmp ecx, ebp
jne 0x6409bf
cmp edi, ebp
jbe 0x6411b7
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + edx + 1]
cmp byte [ecx], 0x2e
jne 0x6409bf
mov dword [esp + 0x60], edi
jmp 0x6409bf
test al, al
je 0x640d45
mov eax, dword [edx + 0x14]
test eax, eax
je 0x640d45
test ebx, ebx
jne 0x640d45
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
jmp 0x64108f
movzx eax, byte [esp + 0x98]
test al, al
je 0x640d6e
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
jmp 0x640eac
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x640d82
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
test al, al
jmp 0x640dd5
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [0x7609a0]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004b7cd0
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, byte [esp + 0x98]
test al, al
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x7c]
je 0x640e77
movzx eax, byte [edx + 4]
test al, al
je 0x640e71
test ebx, ebx
je 0x640df4
mov edx, ebp
mov eax, esi
jmp 0x640e7b
test ecx, ecx
je 0x640e0a
lea eax, [ecx + ebp - 1]
cmp byte [eax], 0x2e
jne 0x640e08
lea eax, [ecx - 1]
test ecx, ecx
jmp 0x640e0c
test ecx, ecx
mov eax, ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x24], ecx
je 0x640e1d
cmp eax, 0xfd
jle 0x640e6b
lea eax, [0x6d0e00]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov edx, dword [0x95f020]
test edx, edx
jne 0x640e46
mov edx, dword [esp + 0x44]
jmp 0x640e51
call fcn.004717c0
mov edx, dword [esp + 0x44]
mov dword [edi], edx
mov dword [eax], edx
mov dword [eax + 0xc], 2
lea ebp, [0x6f68d5]
mov dword [eax + 8], ebp
lea ebx, [0x7633d0]
jmp 0x640e7b
mov edx, ebp
mov eax, esi
jmp 0x640e7b
mov edx, ebp
mov eax, esi
jmp 0x640e7b
mov edx, ebp
mov eax, esi
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], eax
add esp, 0x88
ret
movzx eax, byte [esp + 0x98]
mov esi, ebx
mov ebx, edx
mov edx, ebp
mov ecx, dword [esp + 0x60]
lea ebp, [esp + 0x4c]
cmp dword [ebp + 4], ecx
jle 0x640d6e
mov dword [esp + 0x78], esi
mov dword [esp + 0x38], ebx
mov dword [esp], ebp
call fcn.00641b80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
xor edx, edx
jmp 0x64105d
lea edx, [0x6f717e]
mov dword [esp], edx
mov dword [esp + 4], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.00642d40
mov eax, dword [esp + 0x38]
test eax, eax
je 0x640f0a
mov ebx, eax
mov esi, dword [esp + 0x78]
jmp 0x640f12
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x74], esi
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00641c60
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
jmp 0x640f58
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x8c]
movzx esi, byte [ebp + 4]
xchg esi, eax
test al, al
xchg esi, eax
je 0x640fd3
test edx, edx
jne 0x640fd3
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x6c], eax
test ecx, ecx
je 0x640f7e
cmp ecx, 0x3f
jle 0x640fd3
lea eax, [0x6d0e00]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [0x95f020]
test ecx, ecx
jne 0x640fa7
mov edx, dword [esp + 0x6c]
jmp 0x640fb2
call fcn.004717c0
mov edx, dword [esp + 0x6c]
mov dword [edi], edx
mov dword [eax], edx
mov dword [eax + 0xc], 2
lea ebp, [0x6f68d5]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x8c]
lea edx, [0x7633d0]
mov ebx, eax
mov esi, dword [esp + 0x68]
lea eax, [esi + 1]
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x54]
test edi, edi
je 0x641024
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jle 0x64100b
lea ebp, [ecx - 1]
cmp ebp, eax
jne 0x641018
cmp ecx, eax
jbe 0x641077
lea eax, [edi + esi*8 + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x641018
mov ebp, dword [esp + 0x8c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
jmp 0x640e9e
mov ebp, dword [esp + 0x8c]
jmp 0x640e9e
mov esi, dword [esp + 0x64]
lea eax, [esi + 1]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x50]
lea edi, [ecx - 1]
cmp edi, eax
jne 0x640e9e
cmp ecx, eax
jbe 0x641072
mov eax, dword [esp + 0x4c]
lea eax, [eax + esi + 1]
cmp byte [eax], 0x2e
jne 0x640e9e
mov dword [esp + 0x60], ecx
jmp 0x640e9e
inc edx
cmp edx, ecx
jge 0x640f50
lea ebx, [edx + eax]
cmp byte [ebx], 0x80
jb 0x64105c
jmp 0x640edc
call fcn.00471840
call fcn.00471840
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x60], eax
jge 0x640d45
lea eax, [esp + 0x4c]
mov dword [esp], eax
call fcn.00641b80
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + 0x14]
mov ecx, dword [edx]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
mov dword [esp], ebx
mov dword [esp + 4], ebp
call ecx
movzx eax, byte [esp + 8]
test al, al
je 0x64114d
mov edx, dword [esp + 0x68]
lea eax, [edx + 1]
mov dword [esp + 0x68], eax
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x641115
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jle 0x641108
lea ebp, [ecx - 1]
cmp ebp, eax
jne 0x64107c
cmp ecx, eax
jbe 0x6411b2
lea eax, [ebx + edx*8 + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x64107c
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
jmp 0x64107c
mov edx, dword [esp + 0x64]
lea eax, [edx + 1]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x50]
lea ebx, [ecx - 1]
cmp ebx, eax
jne 0x64107c
cmp ecx, eax
jbe 0x6411ad
mov eax, dword [esp + 0x4c]
lea eax, [eax + edx + 1]
cmp byte [eax], 0x2e
jne 0x64107c
mov dword [esp + 0x60], ecx
jmp 0x64107c
lea eax, [0x6d0e00]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [0x95f020]
test ecx, ecx
jne 0x641179
mov ecx, dword [esp + 0x84]
jmp 0x641187
call fcn.004717c0
mov ecx, dword [esp + 0x84]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], 1
lea ecx, [0x760bac]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x8c]
lea ebx, [0x7633d0]
mov esi, eax
jmp 0x640d45
call fcn.00471840
call fcn.00471840
mov eax, ebp
mov ecx, edi
call fcn.00471840
mov eax, ebp
call fcn.00471840
mov eax, 4
call fcn.004718a0
dec ebp
mov edi, ebp
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 1
add eax, edi
test ebp, ebp
je 0x640919
cmp byte [eax], 0x2e
je 0x6411d1
jmp 0x640919
call fcn.004703c0
jmp fcn.00640890