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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x6441aa
sub esp, 0xb0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp], ecx
call fcn.00640ec0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0xb4]
mov ebx, dword [edx + 0x30]
mov dword [esp + 4], ebx
lea ebx, [0x775b40]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040e920
movzx eax, byte [esp + 0x14]
test al, al
jne 0x643f0b
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x643ed5
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0xb8]
mov dword [edi + 4], edx
mov ebx, dword [0xbc7270]
test ebx, ebx
jne 0x643ec7
mov eax, dword [esp + 0x48]
mov dword [edi], eax
mov ebx, dword [ecx + 0x30]
mov dword [esp + 4], ebx
lea ebx, [0x775b40]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.0040eca0
mov edi, dword [esp + 0x10]
test byte [edi], al
mov eax, dword [0xbc7270]
test eax, eax
jne 0x643eb6
mov eax, dword [esp + 0xb8]
mov dword [edi], eax
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + 0x38]
lea ebx, [edx + 1]
mov ebp, dword [ecx + 0x3c]
mov esi, dword [ecx + 0x34]
cmp ebx, ebp
jg 0x643e59
lea ebx, [edx + 1]
mov dword [ecx + 0x38], ebx
lea edi, [esi + edx*4]
mov ebx, dword [0xbc7270]
test ebx, ebx
jne 0x643e4f
mov dword [esi + edx*4], eax
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x643bc5
add esp, 0xb0
ret
cmp edx, 1
jg 0x643db7
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x643d73
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jbe 0x64406e
movzx eax, byte [edx]
mov byte [esp + 0x29], al
mov byte [esp + 0x2b], al
mov edx, dword [ecx + 0x4c]
mov dword [esp + 4], edx
lea edx, [0x776f80]
mov dword [esp], edx
lea ebx, [esp + 0x2b]
mov dword [esp + 8], ebx
call fcn.0040ae10
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov eax, dword [eax]
test cl, cl
jne 0x643c79
movzx eax, byte [esp + 0x29]
mov byte [esp + 0x2a], al
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 0x4c]
mov dword [esp + 4], eax
lea eax, [0x776f80]
mov dword [esp], eax
lea eax, [esp + 0x2a]
mov dword [esp + 8], eax
call fcn.0040b1b0
mov edi, dword [esp + 0xc]
test byte [edi], al
mov eax, dword [0xbc7270]
test eax, eax
jne 0x643c6b
mov eax, dword [esp + 0xb8]
mov dword [edi], eax
add esp, 0xb0
ret
mov eax, dword [esp + 0xb8]
call fcn.0044cc20
jmp 0x643c64
mov dword [esp + 0x44], eax
lea edi, [esp + 0x98]
xor eax, eax
call fcn.0044cd1a
lea ecx, [0x7720a0]
mov dword [esp + 0x98], ecx
movzx ecx, byte [esp + 0x29]
movzx ecx, cl
lea edx, [0xb76960]
add ecx, edx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0xb4]
lea edx, [ecx + 8]
mov dword [esp + 4], edx
lea edx, [0x771de0]
mov dword [esp], edx
call fcn.00407630
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov ecx, dword [esp + 0x44]
test byte [ecx], al
mov dword [esp + 4], ecx
lea ecx, [0x771de0]
mov dword [esp], ecx
call fcn.00407630
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
lea ecx, [0x7f4487]
mov dword [esp], ecx
mov dword [esp + 4], 0x4c
lea ecx, [esp + 0x98]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004bca60
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xb4]
mov ebp, dword [ebx + 0x64]
mov ebx, dword [ebx + 0x68]
test ebp, ebp
je 0x643d62
mov eax, ebx
mov ebx, ebp
jmp 0x643ffe
mov eax, dword [0xbb4748]
lea ebx, [0x8f8fb0]
jmp 0x643ffe
call fcn.0040a840
mov eax, dword [0xbc7270]
mov ecx, dword [esp]
test eax, eax
jne 0x643da2
mov eax, dword [esp + 0xb4]
mov dword [eax + 0x4c], ecx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
jmp 0x643bd9
mov edx, dword [esp + 0xb4]
lea edi, [edx + 0x4c]
mov eax, ecx
call fcn.0044cc20
mov eax, edx
jmp 0x643d8f
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
add eax, 8
mov dword [esp + 4], eax
lea eax, [0x771de0]
mov dword [esp], eax
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x7ef08d]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
lea eax, [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004bca60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xb4]
mov ebx, dword [edx + 0x68]
mov edx, dword [edx + 0x64]
test edx, edx
je 0x643e3e
mov ebp, edx
mov edx, ebx
mov ebx, ebp
jmp 0x644075
mov edx, dword [0xbb4748]
lea ebx, [0x8f8fb0]
jmp 0x644075
call fcn.0044cc20
jmp 0x643bb7
lea eax, [0x77e9e0]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00438d80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xb4]
mov dword [ebx + 0x3c], edx
mov edx, dword [0xbc7270]
test edx, edx
jne 0x643eac
mov dword [ebx + 0x34], eax
mov edx, ecx
mov esi, eax
mov eax, dword [esp + 0xb8]
mov ecx, ebx
jmp 0x643b9d
lea edi, [ebx + 0x34]
call fcn.0044cc20
jmp 0x643e9a
mov eax, dword [esp + 0xb8]
call fcn.0044cc20
jmp 0x643b82
mov eax, dword [esp + 0x48]
call fcn.0044cc20
jmp 0x643b48
call fcn.0040a840
mov eax, dword [0xbc7270]
mov ecx, dword [esp]
test eax, eax
jne 0x643ef8
mov edx, dword [esp + 0xb4]
mov dword [edx + 0x30], ecx
mov ecx, edx
jmp 0x643b26
mov edx, dword [esp + 0xb4]
lea edi, [edx + 0x30]
mov eax, ecx
call fcn.0044cc20
jmp 0x643ef1
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov eax, dword [esp + 0xb4]
lea ecx, [eax + 8]
mov dword [esp + 4], ecx
lea ecx, [0x771de0]
mov dword [esp], ecx
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
lea eax, [0x771de0]
mov dword [esp], eax
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
lea eax, [0x7e2d4a]
mov dword [esp], eax
mov dword [esp + 4], 0x15
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004bca60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xb4]
mov ebx, dword [edx + 0x68]
mov edx, dword [edx + 0x64]
test edx, edx
je 0x643fed
mov ebp, edx
mov edx, ebx
mov ebx, ebp
jmp 0x6440e5
mov edx, dword [0xbb4748]
lea ebx, [0x8f8fb0]
jmp 0x6440e5
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], edx
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004bc910
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
lea eax, [0x771de0]
mov dword [esp], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00427510
ud2
call fcn.00426630
ud2
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004bc910
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], eax
lea eax, [0x771de0]
mov dword [esp], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00427510
ud2
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ebp, [0x771de0]
mov dword [esp], ebp
lea esi, [esp + 0x78]
mov dword [esp + 4], esi
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004bcd20
mov eax, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
lea eax, [0x771de0]
mov dword [esp], eax
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00427510
ud2
call fcn.0044b4c0
jmp fcn.00643a90