Function at 0x405a30
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb3dc
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5061ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ecx, edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
push str.global
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
call fcn.0041b6c0
test eax, eax
jne 0x405b30
push edi
lea ecx, [ebp - 0x74]
call fcn.004096b0
test esi, esi
je 0x405d17
mov ecx, 0x4d6fcc
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405ac6
test dx, dx
je 0x405ac2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405ac6
add eax, 4
add ecx, 4
test dx, dx
jne 0x405aa0
xor eax, eax
jmp 0x405acb
sbb eax, eax
or eax, 1
test eax, eax
je 0x405d17
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x405b37
mov eax, dword [0x50b538]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.gT
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00404df0
add esp, 0x10
lea ecx, [ebp - 0x60]
call fcn.004044c0
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x5c]
call fcn.004044c0
xor eax, eax
jmp 0x405dd8
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], fcn.00404840
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 4], 4
cmp ecx, 1
jne 0x405b68
push dword [eax]
push ebx
push dword [ebp + 0xc]
call fcn.00405810
add esp, 0xc
mov esi, eax
jmp 0x405cf7
cmp ecx, 2
jl 0x405cb7
mov esi, dword [eax + 4]
mov ecx, dword [eax]
push str._shortcut
push esi
mov dword [ebp - 0x64], ecx
call fcn.004acd3d
add esp, 8
test eax, eax
jne 0x405c76
lea eax, [ebp - 0x58]
push 0x4d6fcc
push eax
call fcn.0040e240
mov edi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
call fcn.00411b30
mov ebx, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.0040e240
add esp, 0x14
mov esi, eax
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 8
jb 0x405bce
mov edi, dword [edi]
push 0x4d7318
mov ecx, ebx
call fcn.00406390
cmp dword [eax + 0x14], 8
jb 0x405be2
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x405bea
mov esi, dword [esi]
push edi
push 0x4d730c
push 0
push eax
push esi
call fcn.00411a30
add esp, 0x14
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00404a80
lea ecx, [ebp - 0x40]
call fcn.00404a80
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00404a80
test esi, esi
jns 0x405c5d
mov eax, dword [0x50b538]
mov dword [ebp - 0x5c], eax
push esi
push 0x4d732c
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00404df0
add esp, 0x10
lea ecx, [ebp - 0x6c]
call fcn.004044c0
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.004044c0
mov ebx, dword [ebp - 0x60]
push dword [ebp - 0x64]
push ebx
push dword [ebp + 0xc]
call fcn.00405810
add esp, 0xc
mov esi, eax
jmp 0x405cf7
mov eax, dword [0x50b538]
mov dword [ebp - 0x5c], eax
push esi
push 0x4d7354
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00404df0
add esp, 0x10
lea ecx, [ebp - 0x6c]
call fcn.004044c0
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.004044c0
jmp 0x405c60
push esi
lea ecx, [ebp - 0x5c]
call fcn.00404430
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xc
push 0x4d7374
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00404df0
add esp, 0x10
lea ecx, [ebp - 0x64]
call fcn.004044c0
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x5c]
xor esi, esi
call fcn.004044c0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0xd
test eax, eax
je 0x405dd6
push eax
call fcn.00404840
add esp, 4
jmp 0x405dd6
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
push 0x67
push dword [ebp - 0x64]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x405b30
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
push eax
push dword [ebp - 0x60]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x64]
call fcn.004049a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.004096f0
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff4
mov byte [ebp - 4], 2
cmp edx, dword [0x50b534]
je 0x405d95
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405d95
push edx
call fcn.00433990
add esp, 4
mov byte [ebp - 4], 0
test esi, esi
je 0x405dbf
cmp dword [ebp - 0x18], 0
je 0x405dbf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.00405810
add esp, 0xc
mov esi, eax
jmp 0x405dc1
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x405dd6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004066e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e386
mov esp, ebp
pop ebp
ret