Function at 0x4040d9
Capabilities:
Accept command line arguments

Disassembly:
push 0xa0
mov eax, 0x479f9c
call fcn.00478470
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], cx
cmp dword [eax + 0x14], 8
mov ecx, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0xa0], edx
jb 0x40411f
mov ecx, dword [eax]
lea eax, [ebp - 0xa0]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0xa0], 0
mov ebx, eax
mov dword [ebp - 0x9c], ebx
jle 0x4041bd
mov esi, dword [ebx]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00401f9a
xor esi, esi
cmp dword [ebp - 0xa0], esi
jle 0x4041bd
push dword [ebx + esi*4]
lea ecx, [ebp - 0x40]
call fcn.004019d1
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405963
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 2
push eax
call fcn.0040848b
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00403e8f
lea ecx, [ebp - 0x7c]
call fcn.00401ef9
test bl, bl
jne 0x40425e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401ef9
mov ebx, dword [ebp - 0x9c]
inc esi
cmp esi, dword [ebp - 0xa0]
jl 0x40415c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x98]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e597
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x98], 0x22
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040e5d4
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
call fcn.004034a9
lea ecx, [ebp - 0x94]
call fcn.00401ef9
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x27
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040e5d4
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.004034a9
lea ecx, [ebp - 0x94]
call fcn.00401ef9
cmp dword [ebp - 0x18], 0
jne 0x404291
push 0x48090c
mov ecx, edi
call fcn.004019d1
jmp 0x40443c
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, edi
mov byte [ebp - 0x9c], al
push dword [ebp - 0x9c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004039fa
lea ecx, [ebp - 0x40]
jmp 0x40443f
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405963
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
call fcn.0040848b
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00403e8f
lea ecx, [ebp - 0x7c]
call fcn.00401ef9
test bl, bl
je 0x4042e9
xor eax, eax
mov ecx, edi
mov byte [ebp - 0x98], al
push dword [ebp - 0x98]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004039fa
jmp 0x40443c
push 0x480d04
lea ecx, [ebp - 0x94]
call fcn.004019d1
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0040e4ea
add esp, 0xc
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.00401ef9
mov esi, 0x48090c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401f9a
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xac]
mov dword [ebp - 0x98], eax
cmp esi, eax
je 0x404412
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
and dword [ebp - 0x2c], 0
push esi
call fcn.00403ca0
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
jne 0x40438b
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00403f67
jmp 0x4043c3
push eax
lea eax, [ebp - 0x70]
push 0x480d04
push eax
call fcn.00402b58
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 9
jb 0x4043ab
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403f67
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.00401ef9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405963
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040848b
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
mov bl, al
call fcn.00403e8f
lea ecx, [ebp - 0x7c]
call fcn.00401ef9
test bl, bl
jne 0x404454
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00401ef9
add esi, 0x18
cmp esi, dword [ebp - 0x98]
jne 0x404357
xor eax, eax
mov ecx, edi
mov byte [ebp - 0x98], al
push dword [ebp - 0x98]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x58]
push eax
call fcn.004039fa
lea ecx, [ebp - 0xac]
call fcn.00403e8f
lea ecx, [ebp - 0x28]
call fcn.00401ef9
lea ecx, [ebp - 0x58]
call fcn.00401ef9
mov eax, edi
call fcn.0047842b
ret
xor eax, eax
mov ecx, edi
mov byte [ebp - 0x98], al
push dword [ebp - 0x98]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004039fa
lea ecx, [ebp - 0x40]
call fcn.00401ef9
jmp 0x404431