Function at 0x403f20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edi
cmp ecx, eax
je 0x403f5c
mov edx, dword [esp + 0x34]
push edx
push ecx
push eax
push eax
call fcn.004056b0
mov edi, dword [esi + 4]
mov ebx, eax
mov eax, dword [esp + 0x44]
push eax
mov eax, ebx
call fcn.00405790
add esp, 0x14
mov dword [esi + 4], ebx
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x14]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x403fb1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x403fa7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403fa7
call fcn.00403ca0
mov dword [esp + 0x28], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403f9c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x403fb1
mov ebx, dword [ecx - 0xc]
push ecx
push edi
call fcn.00403540
mov edi, dword [edi]
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
je 0x404687
mov eax, dword [0x4fb44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fb44c
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x4fb44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fb44c
mov dword [esp + 0x14], ebx
call edx
cmp dword [esp + 0x24], 0
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0
jle 0x404602
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [eax + ecx*4]
mov edx, dword [0x4fb44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fb44c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
test edi, edi
je 0x404058
test edi, 0xffff0000
jne 0x40405c
movzx edi, di
call fcn.004030e0
test eax, eax
je 0x404081
push eax
mov eax, edi
lea edi, [esp + 0x1c]
call fcn.004034a0
jmp 0x40407d
xor eax, eax
jmp 0x404070
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404061
sub eax, edx
sar eax, 1
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
call fcn.00403540
mov esi, dword [esp + 0x18]
push 0x4d4c70
push esi
call fcn.0042f5c2
add esp, 8
test eax, eax
je 0x404540
sub eax, esi
sar eax, 1
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
je 0x404540
mov ebx, eax
test eax, eax
jns 0x4040b0
xor ebx, ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x18], eax
cmp ebx, dword [esi - 0xc]
jl 0x4040c6
call fcn.00403ca0
lea edi, [eax + 0x10]
jmp 0x40412e
mov ecx, dword [eax]
test ecx, ecx
je 0x4040d7
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4040ef
mov edx, dword [0x4fb44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fb44c
call eax
test eax, eax
je 0x40466e
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push ebx
call eax
test eax, eax
je 0x404678
lea edi, [eax + 0x10]
test ebx, ebx
js 0x40467d
cmp ebx, dword [edi - 8]
jg 0x40467d
lea eax, [ebx + ebx]
push eax
push esi
push eax
xor ecx, ecx
mov dword [edi - 0xc], ebx
push edi
mov word [eax + edi], cx
call fcn.0042dd2f
add esp, 0x10
mov eax, dword [esp + 0x14]
lea ebx, [edi - 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], eax
cmp ebx, eax
je 0x404195
cmp dword [eax + 0xc], 0
jl 0x404183
mov edx, dword [ebx]
cmp edx, dword [eax]
jne 0x404183
mov eax, ebx
call fcn.00403ca0
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40417a
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x404195
mov ebx, dword [edi - 0xc]
push edi
lea ecx, [esp + 0x18]
push ecx
call fcn.00403540
mov ebx, dword [esp + 0x2c]
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4041ae
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea ebx, [esp + 0x14]
call fcn.00405210
call fcn.00405190
mov ebx, dword [esi - 0xc]
mov edi, ebx
sub edi, dword [esp + 0x30]
dec edi
jns 0x4041ca
xor edi, edi
cmp edi, ebx
jl 0x4041dc
mov eax, dword [esp + 0x18]
call fcn.00403ca0
lea ebx, [eax + 0x10]
jmp 0x404258
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4041f1
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x404201
mov edx, dword [0x4fb44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fb44c
call eax
sub ebx, edi
lea esi, [esi + ebx*2]
test eax, eax
je 0x40466e
test esi, esi
jne 0x40421a
test edi, edi
jne 0x40467d
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push edi
call eax
test eax, eax
je 0x404678
lea ebx, [eax + 0x10]
test edi, edi
js 0x40467d
cmp edi, dword [ebx - 8]
jg 0x40467d
mov dword [ebx - 0xc], edi
add edi, edi
push edi
push esi
xor ecx, ecx
push edi
push ebx
mov word [edi + ebx], cx
call fcn.0042dd2f
add esp, 0x10
mov esi, dword [esp + 0x10]
lea edi, [ebx - 0x10]
add esi, 0xfffffff0
cmp edi, esi
je 0x4042ab
cmp dword [esi + 0xc], 0
jl 0x40429d
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x40429d
mov eax, edi
call fcn.00403ca0
mov ebx, eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404294
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x4042ab
push ebx
mov ebx, dword [ebx - 0xc]
lea ecx, [esp + 0x14]
push ecx
call fcn.00403540
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4042c4
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ebx, [esp + 0x10]
call fcn.00405210
call fcn.00405190
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 1
jg 0x4042e9
lea eax, [esi - 0x10]
call fcn.00403ca0
lea edi, [eax + 0x10]
jmp 0x40434f
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x4042fb
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x404313
mov edx, dword [0x4fb44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fb44c
call eax
test eax, eax
je 0x40466e
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
test eax, eax
je 0x404678
lea edi, [eax + 0x10]
mov eax, 1
cmp dword [edi - 8], eax
jl 0x40467d
push 2
push esi
xor ecx, ecx
push 2
mov dword [edi - 0xc], eax
push edi
mov word [edi + 2], cx
call fcn.0042dd2f
add esp, 0x10
cmp dword [edi - 0xc], 1
jne 0x40435f
cmp word [edi], 0x22
jne 0x40435f
mov bl, 1
jmp 0x404361
xor bl, bl
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40437d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test bl, bl
je 0x4043c0
mov eax, dword [esi - 0xc]
lea ecx, [esp + 0x10]
push ecx
dec eax
lea ecx, [esp + 0x38]
call fcn.00405340
lea edi, [esp + 0x10]
call fcn.00403b20
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4043bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
mov edi, dword [esi - 0xc]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], eax
cmp edi, 1
jg 0x4043d9
call fcn.00403ca0
lea edi, [eax + 0x10]
jmp 0x40444a
mov ecx, dword [eax]
test ecx, ecx
je 0x4043ea
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4043fa
mov edx, dword [0x4fb44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fb44c
call eax
lea ebx, [esi + edi*2 - 2]
test eax, eax
je 0x40466e
test ebx, ebx
je 0x40467d
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
test eax, eax
je 0x404678
cmp dword [eax + 8], 1
lea edi, [eax + 0x10]
jl 0x40467d
push 2
push ebx
xor ecx, ecx
push 2
mov dword [edi - 0xc], 1
push edi
mov word [edi + 2], cx
call fcn.0042dd2f
add esp, 0x10
cmp dword [edi - 0xc], 1
jne 0x40445a
cmp word [edi], 0x22
jne 0x40445a
mov bl, 1
jmp 0x40445c
xor bl, bl
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404478
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test bl, bl
je 0x4045b4
mov eax, dword [esi - 0xc]
lea edi, [eax - 1]
test edi, edi
jns 0x40448c
xor edi, edi
cmp edi, eax
jl 0x4044a2
mov eax, dword [esp + 0x1c]
call fcn.00403ca0
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
jmp 0x404511
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4044b7
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4044cf
mov edx, dword [0x4fb44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fb44c
call eax
test eax, eax
je 0x40466e
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push edi
call eax
test eax, eax
je 0x404678
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
test edi, edi
js 0x40467d
cmp edi, dword [ebx - 8]
jg 0x40467d
mov dword [ebx - 0xc], edi
add edi, edi
push edi
push esi
xor ecx, ecx
push edi
push ebx
mov word [edi + ebx], cx
call fcn.0042dd2f
add esp, 0x10
lea eax, [esp + 0x1c]
lea edi, [esp + 0x10]
call fcn.00403b20
add ebx, 0xfffffff0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4045b4
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
jmp 0x4045b4
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x404595
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x404587
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x404587
call fcn.00403ca0
mov esi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40457e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x404595
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x18]
push eax
call fcn.00403540
lea ebx, [esp + 0x14]
call fcn.00405210
call fcn.00405190
push 0x4d4b10
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
call fcn.00403540
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
call fcn.004047a0
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x24]
jl 0x404010
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404625
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404641
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403050
call fcn.004159e0
push 0x80070057
call fcn.00403050
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8