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

Disassembly:
sub esp, 0x5a8
xor eax, eax
push ebp
mov ebp, ecx
cmp dword [ebp + 0x14], eax
je 0x40f859
mov eax, 0x40000
jmp 0x40fe69
cmp byte [ebp + 0x2c], al
je 0x40f868
mov eax, 0x50000
jmp 0x40fe69
push ebx
mov ebx, dword [esp + 0x5c0]
push edi
mov edi, eax
mov dword [esp + 0x10], eax
push 0xc
pop ecx
cmp dword [ebp], eax
je 0x40f889
cmp ebx, 4
cmovne edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x5b8]
lea edx, [esp + 0x3ac]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40f899
mov ax, word [esp + 0x3ac]
push esi
test ax, ax
je 0x40fe61
push 0x2f
lea ecx, [esp + 0x3b4]
movzx edx, ax
pop edi
cmp dx, 0x5c
jne 0x40f8d0
mov word [ecx], di
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40f8c7
mov edi, dword [esp + 0x14]
cmp ebx, 4
jne 0x40f915
lea ecx, [esp + 0x3b0]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40f8f2
sub ecx, edx
sar ecx, 1
push 0x2f
pop eax
cmp word [esp + ecx*2 + 0x3ae], ax
je 0x40f915
mov byte [esp + 0x13], 1
jmp 0x40f939
push 8
xor eax, eax
mov byte [esp + 0x17], al
pop esi
mov dword [esp + 0x2c], esi
cmp ebx, 4
je 0x40f93b
lea eax, [esp + 0x3b0]
push eax
call fcn.0040ec6c
pop ecx
test al, al
je 0x40f941
xor eax, eax
mov esi, eax
mov dword [esp + 0x2c], esi
cmp ebx, 2
jne 0x40f956
push dword [esp + 0x5c0]
mov ecx, ebp
call fcn.0040f2e1
jmp 0x40f99e
cmp ebx, 1
jne 0x40f972
push dword [esp + 0x5c4]
mov ecx, ebp
push dword [esp + 0x5c4]
call fcn.0040f360
jmp 0x40f99e
cmp ebx, 3
jne 0x40f98e
push dword [esp + 0x5c4]
mov ecx, ebp
push dword [esp + 0x5c4]
call fcn.0040f48e
jmp 0x40f99e
cmp ebx, 4
jne 0x40fe61
mov ecx, ebp
call fcn.0040f562
test eax, eax
jne 0x40fe66
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 0x40f9e5
sub ecx, edx
mov dword [esp + 0x68], ecx
cmp byte [esp + 0x13], al
je 0x40fa19
lea edi, [esp + 0x198]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fa00
mov ax, word [0x4bd50c]
mov word [edi], ax
inc dword [esp + 0x68]
mov edi, dword [esp + 0x14]
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
mov dword [esp + 0x194], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x3a8], edx
mov dword [esp + 0x5c], edx
mov word [esp + 0x54], ax
cmp dword [ebp], edx
je 0x40fa7d
cmp ebx, 4
je 0x40fa7d
push 9
pop eax
mov word [esp + 0x54], ax
mov word [esp + 0x7c], ax
lea ecx, [ebp + 0x70]
movzx eax, si
mov dword [esp + 0x34], eax
mov word [esp + 0x56], ax
test esi, esi
jne 0x40faa7
mov eax, dword [ecx]
mov dword [esp + 0x30], ecx
test eax, eax
js 0x40faa7
add eax, edi
mov dword [esp + 0x60], eax
jmp 0x40faaf
mov dword [esp + 0x60], edx
mov dword [esp + 0x30], ecx
mov eax, dword [ecx]
lea esi, [esp + 0x18]
mov dword [esp + 0x64], eax
lea edi, [esp + 0x44]
xor eax, eax
mov ebx, dword [ebp + 0x58]
mov word [esp + 0x78], ax
mov ecx, ebx
mov eax, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x5c]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x18]
add eax, dword [ebp + 0x10]
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
shrd ecx, eax, 8
mov eax, edx
mov dword [esp + 0x18], 0xd5455
mov byte [esp + 0x1e], cl
mov ecx, ebx
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 0x40f0fc
push eax
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x7c], 9
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x52], 5
call fcn.0040e26b
add esp, 0xc
test eax, eax
je 0x40fbc5
mov ecx, ebp
call fcn.0040f6b9
mov eax, 0x400
jmp 0x40fe66
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 0x40fbe9
mov ecx, ebp
call fcn.0040f6b9
mov eax, dword [ebp + 0x14]
jmp 0x40fe66
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 0x40fc1b
mov al, byte [esi]
test al, al
je 0x40fc1b
push eax
push edi
call fcn.0040ebe6
pop ecx
pop ecx
add esi, 1
jne 0x40fc07
cmp byte [0x4e72cc], bl
jne 0x40fc3a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
push esi
call fcn.0047b6f0
pop ecx
mov esi, ebx
call fcn.0047b6b0
sar eax, 7
mov byte [esp + esi + 0x38], al
inc esi
cmp esi, 0xc
jl 0x40fc3c
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.0040ec47
mov byte [esp + esi + 0x40], al
inc esi
pop ecx
pop ecx
cmp esi, 0xc
jl 0x40fc5b
cmp dword [ebp], ebx
je 0x40fc94
cmp dword [esp + 0x5c8], 4
je 0x40fc94
push 0xc
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0040f118
add dword [ebp + 0x18], 0xc
mov edi, ebx
cmp dword [ebp], ebx
je 0x40fcaa
cmp dword [esp + 0x5c8], 4
je 0x40fcaa
xor eax, eax
inc eax
jmp 0x40fcac
mov al, bl
cmp dword [esp + 0x5c8], 4
mov esi, dword [esp + 0x2c]
mov byte [ebp + 0x2d], al
je 0x40fce1
push 8
pop eax
cmp esi, eax
jne 0x40fcd2
lea eax, [esp + 0x50]
mov ecx, ebp
push eax
call fcn.0040f6fd
jmp 0x40fcdd
test esi, esi
jne 0x40fce7
mov ecx, ebp
call fcn.0040f7f4
mov edi, eax
jmp 0x40fce7
mov dword [ebp + 0x90], ebx
mov ecx, ebp
mov byte [ebp + 0x2d], bl
call fcn.0040f6b9
mov ecx, dword [ebp + 0x90]
add dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40fe66
test edi, edi
jne 0x40fbbb
add ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x78]
cmp dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
sete dl
mov dword [esp + 0x60], ecx
mov eax, dword [eax]
mov dword [esp + 0x64], eax
cmp byte [ebp + 0x1c], bl
je 0x40fdae
cmp dword [ebp], ebx
je 0x40fd41
cmp dword [esp + 0x5c8], 4
jne 0x40fdae
mov eax, dword [esp + 0x34]
mov word [esp + 0x56], ax
mov ax, word [esp + 0x54]
test al, 1
jne 0x40fd60
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.0040f1eb
test al, al
je 0x40fda4
push ebp
lea eax, [esp + 0x54]
push 0x40f0fc
push eax
call fcn.0040e26b
add esp, 0xc
test eax, eax
jne 0x40fbbb
push dword [ebp + 0x18]
mov ecx, ebp
call fcn.0040f1eb
test al, al
jne 0x40fdf2
mov eax, 0x2000000
jmp 0x40fe66
mov eax, dword [esp + 0x34]
cmp word [esp + 0x56], ax
jne 0x40fe5a
test esi, esi
jne 0x40fdc9
test dl, dl
je 0x40fe5a
push ebp
lea eax, [esp + 0x54]
push 0x40f0fc
push eax
call fcn.0040e4be
add esp, 0xc
test eax, eax
jne 0x40fbbb
mov ax, word [esp + 0x7c]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x54], ax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40fe66
push dword [esp + 0x70]
call fcn.0045cf50
push dword [esp + 0x74]
mov esi, eax
push dword [esp + 0x198]
push esi
call fcn.0045f1c0
push 0x360
mov dword [esp + 0x1a4], esi
call fcn.0045cee0
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 0x40fe46
mov dword [ebp + 0x44], edx
jmp 0x40fe56
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x40fe44
mov dword [ecx + 0x35c], edx
xor eax, eax
jmp 0x40fe66
mov eax, 0x4000000
jmp 0x40fe66
mov eax, 0x10000
pop esi
pop edi
pop ebx
pop ebp
add esp, 0x5a8
ret 0x10