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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6bc
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov ecx, eax
push esi
mov esi, dword [ebx + 0x300]
and eax, 0x404
or ecx, 0xfffffffe
push edi
xor edi, edi
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0xc]
not ecx
mov dword [esp + 0x230], edi
mov dword [esp + 0x268], ecx
mov dword [0x6be040], eax
jne 0x64218e
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x10]
cmp dword [ecx + 4], 0x1818
jae 0x64213f
mov ecx, dword [ecx]
cmp ecx, edi
je 0x6420ff
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 8]
add esp, 8
mov eax, dword [0x6be040]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
push 0x1818
push eax
call dword [ecx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
add esp, 8
cmp ecx, edi
jne 0x642138
mov dword [eax + 4], edi
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 4], 0x1818
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
lea ecx, [eax + 0xc0c]
mov edx, 0xe8300001
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
mov dword [eax], 1
mov dword [eax + 0x34], edi
lea edx, [eax + 0x24]
mov dword [eax + 0x38], edx
mov dword [0x6bdac4], eax
mov eax, 0xe8300001
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
lea eax, [ecx + 0x24]
mov dword [0x6bda7c], ecx
mov dword [ecx], 1
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x34], edi
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 0x24]
lea edx, [ebx + 0xe8]
mov dword [0x6bda60], ecx
mov ecx, dword [ebx + 0xe4]
mov dword [0x6bdab4], edx
mov edx, dword [ebp + 0x20]
mov dword [0x6bdab0], ecx
mov ecx, dword [edx]
mov dword [0x6bdac8], eax
mov eax, ecx
and eax, 1
mov dword [0x6bda9c], edi
mov dword [0x6bda80], 1
je 0x6421e6
test esi, 0xc0000000
mov dword [esp + 0x94], 1
jne 0x6421ed
mov dword [esp + 0x94], edi
cmp eax, edi
je 0x642204
test esi, 0x40000000
mov dword [esp + 0x180], 1
jne 0x64220b
mov dword [esp + 0x180], edi
cmp eax, edi
je 0x64221e
test esi, esi
mov dword [esp + 0x17c], 1
js 0x642225
mov dword [esp + 0x17c], edi
test ch, 4
jne 0x642237
lea eax, [ebx + 8]
push edi
push eax
call fcn.0063d5b0
add esp, 8
cmp dword [ebx + 0x3c0], edi
jge 0x642319
mov eax, dword [ebx + 0x3c4]
cmp eax, edi
jg 0x642260
mov ecx, dword [ebx + 0x2a8]
push 0xccd
push ecx
call fcn.005c6830
jmp 0x6422a5
lea edx, [esp + 0x184]
xor ecx, ecx
push edx
push ecx
push eax
mov dword [esp + 0x190], eax
mov dword [esp + 0x194], ecx
call dword [0x6be054]
mov eax, dword [esp + 0x194]
add esp, 0xc
cmp eax, edi
jne 0x642297
mov eax, dword [esp + 0x184]
jmp 0x6422a8
push eax
mov eax, dword [esp + 0x188]
push eax
call fcn.00640c70
add esp, 8
mov dword [ebx + 0x3bc], eax
mov eax, dword [ebx + 0x3c8]
cmp eax, edi
jg 0x6422cb
mov ecx, dword [ebx + 0x2ac]
push 0xccd
push ecx
call fcn.005c6830
jmp 0x642310
lea edx, [esp + 0x184]
push edx
xor ecx, ecx
push eax
push ecx
mov dword [esp + 0x190], ecx
mov dword [esp + 0x194], eax
call dword [0x6be054]
mov eax, dword [esp + 0x190]
add esp, 0xc
cmp eax, edi
jne 0x642302
mov eax, dword [esp + 0x188]
jmp 0x642313
mov ecx, dword [esp + 0x188]
push ecx
push eax
call fcn.00640c70
add esp, 8
mov dword [ebx + 0x3c0], eax
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x642332
mov edx, dword [ebx + 0x3c0]
mov dword [eax + 0x14], edx
mov ecx, dword [ebx + 0x3bc]
mov dword [eax + 0x18], ecx
mov edx, esi
and edx, 0x10
mov dword [0x6bda90], edx
je 0x6423af
cmp dword [esp + 0x8c], edi
jne 0x6423af
lea ecx, [esp + 0x210]
mov eax, 0x10000
push ecx
push eax
push edi
mov dword [esp + 0x21c], edi
mov dword [esp + 0x220], eax
call dword [0x6be044]
mov edx, dword [esp + 0x220]
mov eax, dword [0x6bda7c]
lea ecx, [esp + 0x21c]
mov dword [eax + 8], edx
push ecx
mov eax, 0x10000
push edi
push eax
mov dword [esp + 0x22c], edi
mov dword [esp + 0x228], eax
call dword [0x6be044]
mov edx, dword [esp + 0x228]
mov eax, dword [0x6bdac4]
add esp, 0x18
mov dword [eax + 8], edx
xor eax, eax
mov dword [0x6be028], 0x10000
cmp dword [ebx + 0x308], 2
sete al
cmp eax, edi
mov dword [0x6bdab8], eax
je 0x6423f6
mov ecx, dword [ebx + 0x2fc]
push 1
push 0x10000
push ecx
call fcn.0063d720
add eax, 0x8000
sar eax, 0x10
not eax
add esp, 0xc
and eax, 1
mov dword [0x6bdaac], eax
or esi, 0xffffffdf
not esi
test esi, esi
mov dword [0x6bda84], edi
jne 0x64241b
cmp dword [esp + 0x8c], edi
jne 0x64241b
cmp dword [esp + 0x94], edi
jne 0x6433f1
mov dword [0x6bda88], 2
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
cmp eax, edi
je 0x64243d
mov ecx, 0xdeadbeef
mov dword [eax + 0x24], ecx
mov edx, dword [edx + 4]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp + 0x20]
test byte [eax], 0x10
jne 0x64244b
mov dword [ebx + 0x3e4], edi
cmp dword [ebx + 0x3f0], edi
je 0x642465
cmp dword [esp + 0x8c], edi
jne 0x642465
push ebx
call fcn.005fe750
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x20]
xor esi, esi
mov dword [0x6be02c], esi
mov dword [ecx + 0x10], esi
mov dword [eax + 0x3cc], esi
mov dword [eax + 0x3d0], esi
mov dword [eax + 0x3d4], esi
mov eax, dword [edi]
test al, 0x18
nop
mov dword [esp + 0x22c], esi
mov dword [esp + 0x228], esi
mov dword [esp + 0x1f8], esi
mov dword [esp + 0x1f4], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x204], esi
mov dword [esp + 0x1fc], esi
mov dword [0x6bda8c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x200], esi
mov dword [esp + 0x174], esi
mov dword [esp + 0x170], esi
je 0x6426ff
mov ecx, eax
xor edx, edx
and ecx, 0x20
je 0x64251e
test al, 0x40
mov edx, dword [esp + 0x28]
je 0x64251b
mov edx, dword [edx]
add edx, 0xc
test al, 0x10
mov eax, dword [edi + 4]
mov dword [esp + 0x2f8], 2
je 0x642638
cmp ecx, esi
mov edi, dword [eax + 8]
mov dword [esp + 0x2f0], edi
je 0x642679
mov ecx, dword [edx]
cmp ecx, esi
mov dword [esp + 0x230], ecx
je 0x642679
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, 0x8000
sar ecx, 0x10
add eax, 0x8000
sar eax, 0x10
movsx ebx, cx
movsx ecx, ax
mov dword [esp + 0x174], ecx
mov ecx, dword [esp + 0x230]
mov eax, dword [ecx]
cmp eax, 0xffff8000
mov dword [esp + 0x170], ebx
jne 0x64259a
mov dword [esp + 0x250], eax
jmp 0x6425a3
sub eax, ebx
mov dword [esp + 0x250], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffff8000
jne 0x6425b6
mov dword [esp + 0x254], eax
jmp 0x6425cb
sub eax, dword [esp + 0x174]
mov ebx, dword [esp + 0x170]
mov dword [esp + 0x254], eax
mov eax, dword [ecx + 8]
cmp eax, 0x7fff
jne 0x6425de
mov dword [esp + 0x258], eax
jmp 0x6425e7
sub eax, ebx
mov dword [esp + 0x258], eax
mov eax, dword [ecx + 0xc]
cmp eax, 0x7fff
jne 0x642611
mov dword [esp + 0x25c], eax
lea eax, [esp + 0x250]
mov dword [esp + 0x174], esi
mov dword [esp + 0x170], esi
mov dword [edx], eax
jmp 0x642679
sub eax, dword [esp + 0x174]
mov dword [esp + 0x25c], eax
lea eax, [esp + 0x250]
mov dword [esp + 0x174], esi
mov dword [esp + 0x170], esi
mov dword [edx], eax
jmp 0x642679
mov edi, dword [eax + 0xc]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
add ebx, 0x8000
add eax, 0x8000
sar ebx, 0x10
sar eax, 0x10
cmp ecx, esi
movsx ebx, bx
movsx eax, ax
mov dword [esp + 0x2f0], edi
mov dword [esp + 0x170], ebx
mov dword [esp + 0x174], eax
je 0x642679
mov ecx, dword [esp + 0x230]
mov dword [edx], ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x10]
cmp ecx, esi
je 0x642722
mov al, byte [ebx + 0x21]
cmp al, 4
jne 0x6426b2
movzx edx, byte [ecx + edi*4]
movzx eax, byte [ecx + edi*4 + 1]
shl edx, 8
add eax, edx
movzx edx, byte [ecx + edi*4 + 2]
movzx ecx, byte [ecx + edi*4 + 3]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
jmp 0x6426f0
cmp al, 3
jne 0x6426d4
lea edx, [ecx + edi*2]
movzx eax, byte [edi + edx + 1]
lea ecx, [edi + edx]
movzx edx, byte [ecx]
movzx ecx, byte [ecx + 2]
shl edx, 8
add eax, edx
shl eax, 8
add eax, ecx
jmp 0x6426f0
cmp al, 2
jne 0x6426e8
movzx edx, byte [ecx + edi*2]
movzx eax, byte [ecx + edi*2 + 1]
shl edx, 8
add eax, edx
jmp 0x6426f0
cmp al, 1
jne 0x642722
movzx eax, byte [ecx + edi]
cmp eax, esi
je 0x642722
mov ecx, dword [ebx + 0xc]
add ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x64271e
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
xor edi, edi
mov dword [esp + 0x2f0], edi
mov dword [esp + 0x2f8], 1
mov dword [esp + 0x20], ecx
mov ebx, eax
cmp ecx, esi
jne 0x64276b
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0x1c], edi
mov edx, dword [edx + 0xc]
cmp edx, esi
je 0x642d6d
lea eax, [esp + 0x2f4]
mov ecx, 0xa
nop
mov dword [eax], esi
add eax, 0x14
dec ecx
jne 0x642740
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x2f8]
push ecx
push ebx
push eax
call edx
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x20], eax
je 0x642d6d
mov ecx, eax
mov dword [esp + 0x2e8], ecx
cmp dword [esp + 0x94], esi
mov eax, 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x178], esi
jne 0x642795
mov dword [esp + 0x6c], 0x63f2e0
jmp 0x6427cc
cmp dword [0x6be060], eax
jne 0x6427c4
mov ecx, dword [0x6be068]
mov eax, 0x10000
cmp ecx, eax
jg 0x6427c4
cmp dword [0x6be074], eax
jg 0x6427c4
cmp dword [0x6bda88], esi
mov dword [esp + 0x6c], 0x63f200
jne 0x6427cc
mov dword [esp + 0x6c], 0x63f260
cmp dword [esp + 0x8c], esi
jne 0x6427e8
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
cmp eax, esi
je 0x6427e8
mov edx, dword [esp + 0x28]
push edx
call eax
add esp, 4
mov dword [esp + 0x18c], esi
lea esi, [esp + 0xa0]
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx]
inc ecx
cmp eax, 0x1f
mov dword [esp + 0x20], ecx
ja 0x6428d2
jmp 0x642810
jmp dword [eax*4 + 0x646b2c]
lea edx, [esp + 0x160]
cmp esi, edx
jae 0x646b1f
lea edx, [eax - 0x8b]
shl edx, 0x10
mov dword [esi], edx
add esi, 4
cmp eax, 0xf6
jle 0x6427f6
sub esi, 4
cmp eax, 0xfa
jg 0x646675
movzx edx, byte [ecx]
add eax, 0xffffff09
shl eax, 8
or eax, edx
add eax, 0x6c
shl eax, 0x10
inc ecx
mov dword [esi], eax
mov dword [esp + 0x20], ecx
add esi, 4
jmp 0x6427f6
mov eax, 0xfffffff5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov esi, dword [ecx]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov ebx, dword [ebp + 8]
mov dword [0x6bda74], ecx
mov ecx, dword [ecx + 4]
shr ecx, 6
shl ecx, 6
add ecx, esi
mov dword [0x6bda70], eax
xor edi, edi
mov dword [0x6bdaa0], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
shr eax, 5
shl eax, 5
add eax, ecx
mov dword [0x6bda88], edi
mov dword [0x6bda6c], esi
mov dword [0x6bda98], ecx
mov dword [0x6bdac0], eax
mov dword [0x6be034], edi
mov dword [0x6bda64], edi
mov dword [0x6bda68], edi
mov dword [0x6bdabc], edx
mov dword [0x6bda78], edi
mov dword [0x6bda94], edi
mov dword [0x6bdaa8], edi
jmp 0x642425
cmp eax, 0xfe
jg 0x6466a2
movzx edx, byte [ecx]
add eax, 0xffffff05
shl eax, 8
inc ecx
mov dword [esp + 0x20], ecx
or eax, edx
mov ecx, 0xffffff94
sub ecx, eax
shl ecx, 0x10
mov dword [esi], ecx
add esi, 4
jmp 0x6427f6
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
inc ecx
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 1]
inc ecx
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 1]
inc ecx
inc ecx
shl eax, 8
or eax, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 8]
mov edx, 1
cmp word [ecx + 0x3f6], dx
jne 0x6466f4
cmp eax, 0xffff8300
jl 0x6466f4
cmp eax, 0x7d00
jg 0x6466f4
shl eax, 0x10
mov dword [esi], eax
add esi, 4
jmp 0x6427f6
mov dword [esi], eax
add esi, 4
cmp word [ecx + 0x3f6], dx
jne 0x6427f6
mov dword [esp + 0x18c], edx
jmp 0x6427f6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret