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

Disassembly:
sub esp, 0x5a8
push ebp
mov ebp, ecx
xor eax, eax
mov dword [esp + 8], ebp
cmp dword [ebp + 0x14], eax
je 0x64975d
mov eax, 0x40000
jmp 0x649d5e
cmp byte [ebp + 0x2c], al
je 0x64976c
mov eax, 0x50000
jmp 0x649d5e
push ebx
mov ebx, dword [esp + 0x5c0]
mov dword [esp + 0x28], eax
cmp dword [ebp], eax
je 0x64978a
cmp ebx, 4
je 0x64978a
mov dword [esp + 0x28], 0xc
mov ecx, dword [esp + 0x5b4]
lea edx, [esp + 0x3a8]
push edi
push 2
sub edx, ecx
pop edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, edi
test ax, ax
jne 0x64979e
mov ax, word [esp + 0x3ac]
push esi
test ax, ax
je 0x649d56
push 0x2f
lea ecx, [esp + 0x3b4]
movzx edx, ax
pop ebp
cmp dx, 0x5c
jne 0x6497d4
mov word [ecx], bp
add ecx, edi
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x6497cb
mov ebp, dword [esp + 0x14]
cmp ebx, 4
jne 0x649817
lea ecx, [esp + 0x3b0]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x6497f5
sub ecx, edx
sar ecx, 1
push 0x2f
pop eax
cmp word [esp + ecx*2 + 0x3ae], ax
je 0x649817
mov byte [esp + 0x13], 1
jmp 0x64983a
push 8
xor eax, eax
mov byte [esp + 0x17], al
pop esi
mov dword [esp + 0x2c], esi
cmp ebx, 4
je 0x64983c
lea eax, [esp + 0x3b0]
push eax
call fcn.0064a285
test al, al
je 0x649842
xor eax, eax
mov esi, eax
mov dword [esp + 0x2c], esi
cmp ebx, edi
jne 0x649856
push dword [esp + 0x5c0]
mov ecx, ebp
call fcn.0064bee4
jmp 0x64989e
cmp ebx, 1
jne 0x649872
push dword [esp + 0x5c4]
mov ecx, ebp
push dword [esp + 0x5c4]
call fcn.0064bf63
jmp 0x64989e
cmp ebx, 3
jne 0x64988e
push dword [esp + 0x5c4]
mov ecx, ebp
push dword [esp + 0x5c4]
call fcn.0064c08b
jmp 0x64989e
cmp ebx, 4
jne 0x649d56
mov ecx, ebp
call fcn.0064be3f
test eax, eax
jne 0x649d5b
xor ecx, ecx
lea eax, [esp + 0x198]
push ecx
push ecx
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x3c4]
mov dword [esp + 0x3c0], ecx
push eax
push ecx
push 0xfde9
mov byte [esp + 0xa8], cl
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea ecx, [esp + 0x198]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6498e5
sub ecx, edx
mov dword [esp + 0x68], ecx
cmp byte [esp + 0x13], al
je 0x649915
lea edi, [esp + 0x198]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x649900
mov ax, word [0x75311c]
mov word [edi], ax
inc dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x3a0], 1
mov word [esp + 0x7a], ax
xor edx, edx
mov eax, 0xb17
mov byte [esp + 0x29c], dl
push 0x14
mov word [esp + 0x54], ax
pop eax
mov word [esp + 0x52], ax
mov eax, dword [ebp + 0x68]
push 8
mov dword [esp + 0x5c], eax
pop eax
push 9
mov dword [esp + 0x198], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x3ac], edx
mov dword [esp + 0x60], edx
mov word [esp + 0x58], ax
pop edi
cmp dword [ebp], edx
je 0x64997b
cmp ebx, 4
je 0x64997b
mov eax, edi
mov word [esp + 0x54], ax
mov word [esp + 0x7c], ax
movzx eax, si
mov dword [esp + 0x14], eax
mov word [esp + 0x56], ax
lea eax, [ebp + 0x70]
test esi, esi
jne 0x6499a9
mov ecx, dword [eax]
mov dword [esp + 0x34], eax
test ecx, ecx
js 0x6499a9
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x60], eax
jmp 0x6499b3
mov ecx, dword [eax]
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], edx
xor eax, eax
mov ebx, dword [ebp + 0x58]
mov word [esp + 0x78], ax
lea esi, [esp + 0x18]
mov eax, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x5c]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x18]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x190], eax
mov al, byte [ebp + 0x58]
mov byte [esp + 0x1d], al
mov eax, edx
mov dword [esp + 0x64], ecx
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov dword [esp + 0x70], edi
mov byte [esp + 0x1e], cl
lea edi, [esp + 0x44]
mov ecx, ebx
mov dword [esp + 0x18], 0xd5455
shrd ecx, eax, 0x10
mov al, byte [ebp + 0x50]
mov byte [esp + 0x21], al
mov byte [esp + 0x1f], cl
shrd ebx, edx, 0x18
mov edx, dword [ebp + 0x54]
mov eax, edx
mov byte [esp + 0x20], bl
mov ebx, dword [ebp + 0x50]
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov byte [esp + 0x1c], 7
mov byte [esp + 0x22], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov al, byte [ebp + 0x60]
shrd ebx, edx, 0x18
mov edx, dword [ebp + 0x64]
mov byte [esp + 0x25], al
mov eax, edx
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], bl
mov ebx, dword [ebp + 0x60]
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov dword [esp + 0x6c], 0x11
mov byte [esp + 0x26], cl
mov ecx, ebx
shrd ecx, eax, 0x10
shrd ebx, edx, 0x18
mov byte [esp + 0x27], cl
lea eax, [esp + 0x50]
mov byte [esp + 0x28], bl
movsd dword es:[edi], dword [esi]
push ebp
push 0x64cf77
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x52], 5
call fcn.0064c864
test eax, eax
je 0x649ac0
mov ecx, ebp
call fcn.0064b978
mov eax, 0x400
jmp 0x649d5b
mov eax, dword [esp + 0x6c]
xor ebx, ebx
add eax, 0x1e
add eax, dword [esp + 0x68]
add dword [ebp + 0x18], eax
cmp dword [ebp + 0x14], ebx
je 0x649ae4
mov ecx, ebp
call fcn.0064b978
mov eax, dword [ebp + 0x14]
jmp 0x649d5b
lea edi, [ebp + 0x30]
mov dword [ebp + 0x34], 0x23456789
mov dword [edi], 0x12345678
mov dword [ebp + 0x38], 0x34567890
mov esi, dword [ebp]
test esi, esi
je 0x649b14
mov al, byte [esi]
test al, al
je 0x649b14
push eax
push edi
call fcn.0064cf96
add esi, 1
jne 0x649b02
cmp byte [0x7f2040], bl
jne 0x649b33
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor esi, eax
push esi
call fcn.0067802e
pop ecx
mov esi, ebx
call fcn.0067800d
sar eax, 7
mov byte [esp + esi + 0x38], al
inc esi
cmp esi, 0xc
jl 0x649b35
mov eax, dword [esp + 0x58]
mov esi, ebx
shr eax, 8
mov byte [esp + 0x43], al
movzx eax, byte [esp + esi + 0x38]
push eax
push edi
call fcn.0064d0ac
mov byte [esp + esi + 0x38], al
inc esi
cmp esi, 0xc
jl 0x649b54
mov eax, dword [ebp]
test eax, eax
je 0x649b90
cmp dword [esp + 0x5c8], 4
je 0x649b90
push 0xc
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0064cfdd
add dword [ebp + 0x18], 0xc
mov eax, dword [ebp]
mov edi, ebx
test eax, eax
je 0x649ba5
cmp dword [esp + 0x5c8], 4
je 0x649ba5
xor eax, eax
inc eax
jmp 0x649ba7
mov al, bl
cmp dword [esp + 0x5c8], 4
mov esi, dword [esp + 0x2c]
mov byte [ebp + 0x2d], al
je 0x649bdc
push 8
pop eax
cmp esi, eax
jne 0x649bcd
lea eax, [esp + 0x50]
mov ecx, ebp
push eax
call fcn.0064b9b9
jmp 0x649bd8
test esi, esi
jne 0x649be2
mov ecx, ebp
call fcn.0064bb2b
mov edi, eax
jmp 0x649be2
mov dword [ebp + 0x90], ebx
mov ecx, ebp
mov byte [ebp + 0x2d], bl
call fcn.0064b978
mov ecx, dword [ebp + 0x90]
add dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x649d5b
test edi, edi
jne 0x649ab6
add ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x78]
cmp dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
sete dl
mov dword [esp + 0x60], ecx
mov eax, dword [eax]
mov dword [esp + 0x64], eax
cmp byte [ebp + 0x1c], bl
je 0x649ca6
cmp dword [ebp], ebx
je 0x649c3c
cmp dword [esp + 0x5c8], 4
jne 0x649ca6
mov eax, dword [esp + 0x14]
mov word [esp + 0x56], ax
mov ax, word [esp + 0x54]
test al, 1
jne 0x649c5b
mov ecx, 0xfff7
and ax, cx
mov word [esp + 0x54], ax
mov word [esp + 0x7c], ax
mov ecx, ebp
mov eax, dword [esp + 0x84]
sub eax, dword [ebp + 0x10]
push eax
call fcn.0064c158
test al, al
je 0x649c9c
push ebp
push 0x64cf77
lea eax, [esp + 0x58]
push eax
call fcn.0064c864
test eax, eax
jne 0x649ab6
push dword [ebp + 0x18]
mov ecx, ebp
call fcn.0064c158
test al, al
jne 0x649ce7
mov eax, 0x2000000
jmp 0x649d5b
mov eax, dword [esp + 0x14]
cmp word [esp + 0x56], ax
jne 0x649d4f
test esi, esi
jne 0x649cc1
test dl, dl
je 0x649d4f
push ebp
push 0x64cf77
lea eax, [esp + 0x58]
push eax
call fcn.0064c745
test eax, eax
jne 0x649ab6
mov ax, word [esp + 0x7c]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x54], ax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x649d5b
push dword [esp + 0x70]
call fcn.0066490b
push dword [esp + 0x74]
mov esi, eax
push dword [esp + 0x198]
push esi
call fcn.006661f0
push 0x360
mov dword [esp + 0x1a4], esi
call fcn.00664379
mov edx, eax
lea esi, [esp + 0x64]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x44]
add esp, 0x14
test ecx, ecx
jne 0x649d3b
mov dword [ebp + 0x44], edx
jmp 0x649d4b
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x649d39
mov dword [ecx + 0x35c], edx
xor eax, eax
jmp 0x649d5b
mov eax, 0x4000000
jmp 0x649d5b
mov eax, 0x10000
pop esi
pop edi
pop ebx
pop ebp
add esp, 0x5a8
ret 0x10