Function at 0x403f10
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 0x403f4c
mov edx, dword [esp + 0x34]
push edx
push ecx
push eax
push eax
call fcn.004056a0
mov edi, dword [esi + 4]
mov ebx, eax
mov eax, dword [esp + 0x44]
push eax
mov eax, ebx
call fcn.00405780
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 0x403fa1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x403f97
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403f97
call fcn.00403c80
mov dword [esp + 0x28], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403f8c
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 0x403fa1
mov ebx, dword [ecx - 0xc]
push ecx
push edi
call fcn.004034f0
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 0x404677
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
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 0x4045f2
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [eax + ecx*4]
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
test edi, edi
je 0x404048
test edi, 0xffff0000
jne 0x40404c
movzx edi, di
call fcn.004030e0
test eax, eax
je 0x404071
push eax
mov eax, edi
lea edi, [esp + 0x1c]
call fcn.00403450
jmp 0x40406d
xor eax, eax
jmp 0x404060
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404051
sub eax, edx
sar eax, 1
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
call fcn.004034f0
mov esi, dword [esp + 0x18]
push 0x4d5c60
push esi
call fcn.00430862
add esp, 8
test eax, eax
je 0x404530
sub eax, esi
sar eax, 1
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
je 0x404530
mov ebx, eax
test eax, eax
jns 0x4040a0
xor ebx, ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x18], eax
cmp ebx, dword [esi - 0xc]
jl 0x4040b6
call fcn.00403c80
lea edi, [eax + 0x10]
jmp 0x40411e
mov ecx, dword [eax]
test ecx, ecx
je 0x4040c7
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4040df
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fc44c
call eax
test eax, eax
je 0x40465e
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push ebx
call eax
test eax, eax
je 0x404668
lea edi, [eax + 0x10]
test ebx, ebx
js 0x40466d
cmp ebx, dword [edi - 8]
jg 0x40466d
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.0042efcf
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 0x404185
cmp dword [eax + 0xc], 0
jl 0x404173
mov edx, dword [ebx]
cmp edx, dword [eax]
jne 0x404173
mov eax, ebx
call fcn.00403c80
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 0x40416a
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 0x404185
mov ebx, dword [edi - 0xc]
push edi
lea ecx, [esp + 0x18]
push ecx
call fcn.004034f0
mov ebx, dword [esp + 0x2c]
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40419e
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea ebx, [esp + 0x14]
call fcn.00405200
call fcn.00405180
mov ebx, dword [esi - 0xc]
mov edi, ebx
sub edi, dword [esp + 0x30]
dec edi
jns 0x4041ba
xor edi, edi
cmp edi, ebx
jl 0x4041cc
mov eax, dword [esp + 0x18]
call fcn.00403c80
lea ebx, [eax + 0x10]
jmp 0x404248
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4041e1
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4041f1
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fc44c
call eax
sub ebx, edi
lea esi, [esi + ebx*2]
test eax, eax
je 0x40465e
test esi, esi
jne 0x40420a
test edi, edi
jne 0x40466d
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push edi
call eax
test eax, eax
je 0x404668
lea ebx, [eax + 0x10]
test edi, edi
js 0x40466d
cmp edi, dword [ebx - 8]
jg 0x40466d
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.0042efcf
add esp, 0x10
mov esi, dword [esp + 0x10]
lea edi, [ebx - 0x10]
add esi, 0xfffffff0
cmp edi, esi
je 0x40429b
cmp dword [esi + 0xc], 0
jl 0x40428d
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x40428d
mov eax, edi
call fcn.00403c80
mov ebx, eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404284
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 0x40429b
push ebx
mov ebx, dword [ebx - 0xc]
lea ecx, [esp + 0x14]
push ecx
call fcn.004034f0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4042b4
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ebx, [esp + 0x10]
call fcn.00405200
call fcn.00405180
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 1
jg 0x4042d9
lea eax, [esi - 0x10]
call fcn.00403c80
lea edi, [eax + 0x10]
jmp 0x40433f
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x4042eb
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x404303
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fc44c
call eax
test eax, eax
je 0x40465e
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
test eax, eax
je 0x404668
lea edi, [eax + 0x10]
mov eax, 1
cmp dword [edi - 8], eax
jl 0x40466d
push 2
push esi
xor ecx, ecx
push 2
mov dword [edi - 0xc], eax
push edi
mov word [edi + 2], cx
call fcn.0042efcf
add esp, 0x10
cmp dword [edi - 0xc], 1
jne 0x40434f
cmp word [edi], 0x22
jne 0x40434f
mov bl, 1
jmp 0x404351
xor bl, bl
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40436d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test bl, bl
je 0x4043b0
mov eax, dword [esi - 0xc]
lea ecx, [esp + 0x10]
push ecx
dec eax
lea ecx, [esp + 0x38]
call fcn.00405330
lea edi, [esp + 0x10]
call fcn.00403b00
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 0x4043ac
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 0x4043c9
call fcn.00403c80
lea edi, [eax + 0x10]
jmp 0x40443a
mov ecx, dword [eax]
test ecx, ecx
je 0x4043da
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4043ea
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fc44c
call eax
lea ebx, [esi + edi*2 - 2]
test eax, eax
je 0x40465e
test ebx, ebx
je 0x40466d
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
test eax, eax
je 0x404668
cmp dword [eax + 8], 1
lea edi, [eax + 0x10]
jl 0x40466d
push 2
push ebx
xor ecx, ecx
push 2
mov dword [edi - 0xc], 1
push edi
mov word [edi + 2], cx
call fcn.0042efcf
add esp, 0x10
cmp dword [edi - 0xc], 1
jne 0x40444a
cmp word [edi], 0x22
jne 0x40444a
mov bl, 1
jmp 0x40444c
xor bl, bl
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404468
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test bl, bl
je 0x4045a4
mov eax, dword [esi - 0xc]
lea edi, [eax - 1]
test edi, edi
jns 0x40447c
xor edi, edi
cmp edi, eax
jl 0x404492
mov eax, dword [esp + 0x1c]
call fcn.00403c80
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
jmp 0x404501
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4044a7
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4044bf
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fc44c
call eax
test eax, eax
je 0x40465e
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push edi
call eax
test eax, eax
je 0x404668
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
test edi, edi
js 0x40466d
cmp edi, dword [ebx - 8]
jg 0x40466d
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.0042efcf
add esp, 0x10
lea eax, [esp + 0x1c]
lea edi, [esp + 0x10]
call fcn.00403b00
add ebx, 0xfffffff0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4045a4
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
jmp 0x4045a4
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x404585
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x404577
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x404577
call fcn.00403c80
mov esi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40456e
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 0x404585
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x18]
push eax
call fcn.004034f0
lea ebx, [esp + 0x14]
call fcn.00405200
call fcn.00405180
push 0x4d5b00
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
call fcn.004034f0
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
call fcn.00404790
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045d3
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 0x404000
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 0x404615
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 0x404631
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 0x404650
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.004036c0
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 0x404696
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