Function at 0x404fb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40c178
push 0x40a690
mov eax, dword fs:[0]
push eax
add esp, 0xffffff58
push ebx
push esi
push edi
lea edi, [ebp - 0xb8]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x401324]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], 0
movzx eax, byte [ebp + 0x1c]
test eax, eax
jne 0x4050ca
mov esi, esp
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
push ecx
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.0040a650
wait
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x40505d
jmp 0x405342
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0x18]
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x44]
shl edx, 1
mov esi, esp
push edx
push 0xc
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.0040a650
wait
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40509a
jmp 0x405342
mov esi, esp
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x14]
push eax
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.0040a650
wait
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4050ca
jmp 0x405342
mov dword [ebp - 0x4c], 0
mov esi, esp
lea ecx, [ebp - 0x4c]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp edi, esp
call fcn.0040a650
wait
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp esi, esp
call fcn.0040a650
wait
mov dword [ebp - 0x54], eax
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0x18]
mov dword [ebp - 0x9c], eax
mov esi, esp
push 0x208
push 0xc
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.0040a650
wait
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x405190
mov eax, 4
imul eax, eax, 0
mov esi, esp
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp esi, esp
call fcn.0040a650
wait
push eax
push 0x208
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0040a0a0
wait
test eax, eax
jl 0x405190
mov esi, esp
lea ecx, [ebp - 0x5c]
push ecx
push 0
lea edx, [ebp - 0x24]
push edx
push 0x419
mov eax, dword [ebp + 0xc]
push eax
push 0x400000
push 0x2900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp esi, esp
call fcn.0040a650
wait
cmp dword [ebp - 0x24], 0
jne 0x4051b9
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0040a650
wait
cmp eax, 0x13d
jne 0x4051b9
mov dword [ebp + 0xc], 0x80030005
jmp 0x405163
cmp dword [ebp - 0x5c], 0
je 0x4051ec
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0x18]
mov dword [ebp - 0xa0], eax
mov esi, esp
mov ecx, dword [ebp - 0x5c]
push ecx
push 0
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.0040a650
wait
cmp dword [ebp - 0x24], 0
jne 0x4051f9
jmp 0x405342
mov esi, esp
push 0x401910
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
cmp esi, esp
call fcn.0040a650
wait
mov ecx, dword [ebp + 0x10]
and ecx, 0xffffbfff
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x8c], 0x28
mov edx, dword [ebp + 8]
mov dword [ebp - 0x88], edx
mov eax, dword [0x40c298]
mov dword [ebp - 0x84], eax
movzx ecx, byte [ebp + 0x1c]
test ecx, ecx
je 0x40524f
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xac], edx
jmp 0x405258
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp + 0x10]
and eax, 0x1000000
je 0x40527d
mov dword [ebp - 0xb0], 1
jmp 0x405287
mov dword [ebp - 0xb0], 0
cmp dword [ebp + 0x18], 0
je 0x405299
mov dword [ebp - 0xb4], 0x4000
jmp 0x4052a3
mov dword [ebp - 0xb4], 0
mov ecx, dword [ebp + 0x10]
or ecx, 0x80
or ecx, 0x10000
or ecx, dword [ebp - 0xb0]
or ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], 0x409d00
mov dword [ebp - 0x68], 0x419
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.0040a650
wait
mov esi, esp
push eax
push 0
push fcn.00409bf0
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp esi, esp
call fcn.0040a650
wait
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x405328
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0xf
call fcn.00409bf0
wait
mov esi, esp
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
cmp esi, esp
call fcn.0040a650
wait
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
jmp 0x40539e
mov dword [ebp - 4], 0xfffffffe
call fcn.004053ac
jmp 0x4053f8
mov eax, dword [ebp - 0x3c]
push edx
mov ecx, ebp
push eax
lea edx, [0x405438]
call fcn.0040a5f0
pop eax
pop edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040a680
add esp, 0xb8
cmp ebp, esp
call fcn.0040a650
mov esp, ebp
pop ebp
ret 0x18