Function at 0x650e61
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 0x650e7f
mov eax, 0x40000
jmp 0x651480
cmp byte [ebp + 0x2c], al
je 0x650e8e
mov eax, 0x50000
jmp 0x651480
push ebx
mov ebx, dword [esp + 0x5c0]
mov dword [esp + 0x28], eax
cmp dword [ebp], eax
je 0x650eac
cmp ebx, 4
je 0x650eac
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 0x650ec0
mov ax, word [esp + 0x3ac]
push esi
test ax, ax
je 0x651478
push 0x2f
lea ecx, [esp + 0x3b4]
movzx edx, ax
pop ebp
cmp dx, 0x5c
jne 0x650ef6
mov word [ecx], bp
add ecx, edi
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x650eed
mov ebp, dword [esp + 0x14]
cmp ebx, 4
jne 0x650f39
lea ecx, [esp + 0x3b0]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x650f17
sub ecx, edx
sar ecx, 1
push 0x2f
pop eax
cmp word [esp + ecx*2 + 0x3ae], ax
je 0x650f39
mov byte [esp + 0x13], 1
jmp 0x650f5c
push 8
xor eax, eax
mov byte [esp + 0x17], al
pop esi
mov dword [esp + 0x2c], esi
cmp ebx, 4
je 0x650f5e
lea eax, [esp + 0x3b0]
push eax
call fcn.006519a7
test al, al
je 0x650f64
xor eax, eax
mov esi, eax
mov dword [esp + 0x2c], esi
cmp ebx, edi
jne 0x650f78
push dword [esp + 0x5c0]
mov ecx, ebp
call fcn.00653606
jmp 0x650fc0
cmp ebx, 1
jne 0x650f94
push dword [esp + 0x5c4]
mov ecx, ebp
push dword [esp + 0x5c4]
call fcn.00653685
jmp 0x650fc0
cmp ebx, 3
jne 0x650fb0
push dword [esp + 0x5c4]
mov ecx, ebp
push dword [esp + 0x5c4]
call fcn.006537ad
jmp 0x650fc0
cmp ebx, 4
jne 0x651478
mov ecx, ebp
call fcn.00653561
test eax, eax
jne 0x65147d
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 0x651007
sub ecx, edx
mov dword [esp + 0x68], ecx
cmp byte [esp + 0x13], al
je 0x651037
lea edi, [esp + 0x198]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x651022
mov ax, word [0x75c64c]
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 0x65109d
cmp ebx, 4
je 0x65109d
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 0x6510cb
mov ecx, dword [eax]
mov dword [esp + 0x34], eax
test ecx, ecx
js 0x6510cb
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x60], eax
jmp 0x6510d5
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 0x654699
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x52], 5
call fcn.00653f86
test eax, eax
je 0x6511e2
mov ecx, ebp
call fcn.0065309a
mov eax, 0x400
jmp 0x65147d
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 0x651206
mov ecx, ebp
call fcn.0065309a
mov eax, dword [ebp + 0x14]
jmp 0x65147d
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 0x651236
mov al, byte [esi]
test al, al
je 0x651236
push eax
push edi
call fcn.006546b8
add esi, 1
jne 0x651224
cmp byte [0x7fcc70], bl
jne 0x651255
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor esi, eax
push esi
call fcn.0067fb1b
pop ecx
mov esi, ebx
call fcn.0067fafa
sar eax, 7
mov byte [esp + esi + 0x38], al
inc esi
cmp esi, 0xc
jl 0x651257
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.006547ce
mov byte [esp + esi + 0x38], al
inc esi
cmp esi, 0xc
jl 0x651276
mov eax, dword [ebp]
test eax, eax
je 0x6512b2
cmp dword [esp + 0x5c8], 4
je 0x6512b2
push 0xc
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.006546ff
add dword [ebp + 0x18], 0xc
mov eax, dword [ebp]
mov edi, ebx
test eax, eax
je 0x6512c7
cmp dword [esp + 0x5c8], 4
je 0x6512c7
xor eax, eax
inc eax
jmp 0x6512c9
mov al, bl
cmp dword [esp + 0x5c8], 4
mov esi, dword [esp + 0x2c]
mov byte [ebp + 0x2d], al
je 0x6512fe
push 8
pop eax
cmp esi, eax
jne 0x6512ef
lea eax, [esp + 0x50]
mov ecx, ebp
push eax
call fcn.006530db
jmp 0x6512fa
test esi, esi
jne 0x651304
mov ecx, ebp
call fcn.0065324d
mov edi, eax
jmp 0x651304
mov dword [ebp + 0x90], ebx
mov ecx, ebp
mov byte [ebp + 0x2d], bl
call fcn.0065309a
mov ecx, dword [ebp + 0x90]
add dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x65147d
test edi, edi
jne 0x6511d8
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 0x6513c8
cmp dword [ebp], ebx
je 0x65135e
cmp dword [esp + 0x5c8], 4
jne 0x6513c8
mov eax, dword [esp + 0x14]
mov word [esp + 0x56], ax
mov ax, word [esp + 0x54]
test al, 1
jne 0x65137d
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.0065387a
test al, al
je 0x6513be
push ebp
push 0x654699
lea eax, [esp + 0x58]
push eax
call fcn.00653f86
test eax, eax
jne 0x6511d8
push dword [ebp + 0x18]
mov ecx, ebp
call fcn.0065387a
test al, al
jne 0x651409
mov eax, 0x2000000
jmp 0x65147d
mov eax, dword [esp + 0x14]
cmp word [esp + 0x56], ax
jne 0x651471
test esi, esi
jne 0x6513e3
test dl, dl
je 0x651471
push ebp
push 0x654699
lea eax, [esp + 0x58]
push eax
call fcn.00653e67
test eax, eax
jne 0x6511d8
mov ax, word [esp + 0x7c]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x54], ax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x65147d
push dword [esp + 0x70]
call fcn.0066c07b
push dword [esp + 0x74]
mov esi, eax
push dword [esp + 0x198]
push esi
call fcn.0066d9b0
push 0x360
mov dword [esp + 0x1a4], esi
call fcn.0066bada
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 0x65145d
mov dword [ebp + 0x44], edx
jmp 0x65146d
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x65145b
mov dword [ecx + 0x35c], edx
xor eax, eax
jmp 0x65147d
mov eax, 0x4000000
jmp 0x65147d
mov eax, 0x10000
pop esi
pop edi
pop ebx
pop ebp
add esp, 0x5a8
ret 0x10