Function at 0x409520
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x4c
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
xor ebx, ebx
push esi
xor eax, eax
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0xf], bl
mov byte [0x6423dc], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov ecx, dword [edi]
mov eax, ecx
mov dword [esp + 0x14], edi
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x409590
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.004026f0
mov esi, dword [esp + 0x18]
cmp esi, 2
jl 0x409692
mov eax, dword [edi + 4]
mov ecx, 0x58d6e4
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4095e6
cmp dx, bx
je 0x4095e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4095e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4095c0
xor eax, eax
jmp 0x4095eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4095f6
mov byte [0x6423dc], 1
push ebp
mov edi, 1
lea ebp, [esi - 1]
cmp ebp, edi
jl 0x40964b
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 4]
lea ebx, [ebx]
mov ecx, 0x58d6dc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40963d
cmp dx, bx
je 0x409639
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40963d
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x409617
xor eax, eax
jmp 0x409642
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40964b
inc edi
cmp edi, ebp
jle 0x409610
mov edi, 1
cmp ebp, edi
jl 0x40968d
mov eax, dword [esp + 0x18]
mov edx, dword [eax + edi*4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409660
sub eax, esi
sar eax, 1
cmp eax, 2
jb 0x409688
cmp word [edx], 0x2d
jne 0x409688
movzx eax, word [edx + 2]
cmp eax, 0x63
jne 0x409688
mov byte [esp + 0x13], 1
inc edi
cmp edi, ebp
jle 0x409654
mov edi, dword [esp + 0x18]
pop ebp
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004063b0
add esp, 8
mov esi, 0x10
cmp byte [0x6423dc], bl
je 0x4096cf
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, eax
cmp edx, esi
jae 0x4096c5
lea ecx, [esp + 0x20]
mov eax, ecx
push ebx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0x2e
call fcn.004060b0
cmp eax, 0xffffffff
jne 0x4096fb
push 4
push str..exe
lea ecx, [esp + 0x24]
call fcn.00402c20
cmp byte [esp + 0xf], bl
je 0x409719
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x40970f
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004092d0
jmp 0x409721
push 1
push ebx
call fcn.00408520
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x34], esi
jb 0x40973e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00554bd9
add esp, 4
cmp dword [esp + 0x50], 8
pop edi
pop esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x2c], 0xf
pop ebx
jb 0x409765
mov edx, dword [esp + 0x30]
push edx
call fcn.00554bd9
add esp, 4
mov ecx, dword [esp + 0x48]
xor ecx, esp
xor eax, eax
call fcn.005550b0
add esp, 0x4c
ret 0x10