Function at 0x42b330
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x82c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
call fcn.00427660
mov ecx, eax
test ecx, ecx
je 0x42b6b7
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [ebp - 0x82c], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x828], esi
jle 0x42b3c2
mov edx, dword [edi + 4]
test edx, edx
jne 0x42b396
xor ecx, ecx
jmp 0x42b3af
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b3a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.004272a0
mov esi, dword [ebp - 0x828]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
mov ecx, esp
push 0x5f82b8
call fcn.00427350
push ecx
mov ecx, esp
push str.magictool
call fcn.00427350
call fcn.0042ddd0
add esp, 8
or ebx, 0xffffffff
test al, al
jne 0x42b68d
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004cbb60
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004cbb60
push 0
lea eax, [ebp - 0x824]
push eax
push 0
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d3087
lea eax, [ebp - 0x824]
push eax
push 0x5f9134
push 0x6155d8
call fcn.00425da0
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x830]
call fcn.0042d9a0
push eax
mov ecx, 0x6155dc
call fcn.004254f0
mov edx, dword [ebp - 0x830]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b4b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x830]
call fcn.0042dad0
push eax
mov ecx, 0x6155e0
call fcn.004254f0
mov edx, dword [ebp - 0x830]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b4e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [0x6155d8]
mov edi, 1
mov eax, edi
sub eax, dword [edx - 4]
or eax, dword [edx - 8]
jge 0x42b50c
push 0
mov ecx, 0x6155d8
call fcn.00427130
mov edx, dword [0x6155d8]
lea ecx, [ebp - 0x830]
call fcn.0042bf20
push eax
mov ecx, 0x6155e4
call fcn.004254f0
mov edx, dword [ebp - 0x830]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b53f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x834]
lea eax, [ebp - 0x414]
push 0x208
push 0
push eax
mov dword [0x6155a0], ebx
call fcn.004cbb60
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004cbb60
lea eax, [ebp - 0x61c]
mov ecx, ebx
push eax
lea edx, [ebp - 0x414]
call fcn.0042c3b0
lea ecx, [ebp - 0x414]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b591
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, 0x6155d0
call fcn.004272a0
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b5c0
sub ecx, edx
lea eax, [ebp - 0x61c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x6155d4
call fcn.004272a0
mov eax, edi
sub eax, dword [esi - 4]
or eax, dword [esi - 8]
jge 0x42b5fe
push 0
lea ecx, [ebp - 0x828]
call fcn.00427130
mov esi, dword [ebp - 0x828]
mov ebx, dword [0x6155e0]
mov eax, edi
sub eax, dword [ebx - 4]
or eax, dword [ebx - 8]
jge 0x42b620
push 0
mov ecx, 0x6155e0
call fcn.00427130
mov ebx, dword [0x6155e0]
mov edx, dword [0x6155d0]
mov eax, edi
mov dword [ebp - 0x828], edx
sub eax, dword [edx - 4]
or eax, dword [edx - 8]
jge 0x42b64d
push 0
mov ecx, 0x6155d0
call fcn.00427130
mov eax, dword [0x6155d0]
mov dword [ebp - 0x828], eax
mov ecx, dword [0x6155d8]
sub edi, dword [ecx - 4]
or edi, dword [ecx - 8]
jge 0x42b66d
push 0
mov ecx, 0x6155d8
call fcn.00427130
mov ecx, dword [0x6155d8]
mov edx, dword [ebp - 0x828]
push esi
push ebx
call fcn.0042b6d0
mov ecx, dword [ebp - 0x834]
add esp, 8
mov dl, al
call fcn.0042c230
or ebx, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42b6a2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c8d78
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00427410
int3