Function at 0x403eb0
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 0x403eec
mov edx, dword [esp + 0x34]
push edx
push ecx
push eax
push eax
call fcn.00405640
mov edi, dword [esi + 4]
mov ebx, eax
mov eax, dword [esp + 0x44]
push eax
mov eax, ebx
call fcn.00405720
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 0x403f41
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x403f37
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403f37
call fcn.00403c30
mov dword [esp + 0x28], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403f2c
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 0x403f41
mov ebx, dword [ecx - 0xc]
push ecx
push edi
call fcn.004034c0
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 0x404617
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
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 0x404592
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [eax + ecx*4]
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
test edi, edi
je 0x403fe8
test edi, 0xffff0000
jne 0x403fec
movzx edi, di
call fcn.004030b0
test eax, eax
je 0x404011
push eax
mov eax, edi
lea edi, [esp + 0x1c]
call fcn.00403420
jmp 0x40400d
xor eax, eax
jmp 0x404000
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ff1
sub eax, edx
sar eax, 1
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
call fcn.004034c0
mov esi, dword [esp + 0x18]
push 0x4d39e0
push esi
call fcn.004308a2
add esp, 8
test eax, eax
je 0x4044d0
sub eax, esi
sar eax, 1
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
je 0x4044d0
mov ebx, eax
test eax, eax
jns 0x404040
xor ebx, ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x18], eax
cmp ebx, dword [esi - 0xc]
jl 0x404056
call fcn.00403c30
lea edi, [eax + 0x10]
jmp 0x4040be
mov ecx, dword [eax]
test ecx, ecx
je 0x404067
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x40407f
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fa44c
call eax
test eax, eax
je 0x4045fe
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push ebx
call eax
test eax, eax
je 0x404608
lea edi, [eax + 0x10]
test ebx, ebx
js 0x40460d
cmp ebx, dword [edi - 8]
jg 0x40460d
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.0042f00f
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 0x404125
cmp dword [eax + 0xc], 0
jl 0x404113
mov edx, dword [ebx]
cmp edx, dword [eax]
jne 0x404113
mov eax, ebx
call fcn.00403c30
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 0x40410a
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 0x404125
mov ebx, dword [edi - 0xc]
push edi
lea ecx, [esp + 0x18]
push ecx
call fcn.004034c0
mov ebx, dword [esp + 0x2c]
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40413e
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea ebx, [esp + 0x14]
call fcn.004051a0
call fcn.00405120
mov ebx, dword [esi - 0xc]
mov edi, ebx
sub edi, dword [esp + 0x30]
dec edi
jns 0x40415a
xor edi, edi
cmp edi, ebx
jl 0x40416c
mov eax, dword [esp + 0x18]
call fcn.00403c30
lea ebx, [eax + 0x10]
jmp 0x4041e8
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test ecx, ecx
je 0x404181
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x404191
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fa44c
call eax
sub ebx, edi
lea esi, [esi + ebx*2]
test eax, eax
je 0x4045fe
test esi, esi
jne 0x4041aa
test edi, edi
jne 0x40460d
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push edi
call eax
test eax, eax
je 0x404608
lea ebx, [eax + 0x10]
test edi, edi
js 0x40460d
cmp edi, dword [ebx - 8]
jg 0x40460d
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.0042f00f
add esp, 0x10
mov esi, dword [esp + 0x10]
lea edi, [ebx - 0x10]
add esi, 0xfffffff0
cmp edi, esi
je 0x40423b
cmp dword [esi + 0xc], 0
jl 0x40422d
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x40422d
mov eax, edi
call fcn.00403c30
mov ebx, eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404224
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 0x40423b
push ebx
mov ebx, dword [ebx - 0xc]
lea ecx, [esp + 0x14]
push ecx
call fcn.004034c0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404254
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ebx, [esp + 0x10]
call fcn.004051a0
call fcn.00405120
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 1
jg 0x404279
lea eax, [esi - 0x10]
call fcn.00403c30
lea edi, [eax + 0x10]
jmp 0x4042df
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x40428b
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4042a3
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fa44c
call eax
test eax, eax
je 0x4045fe
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
test eax, eax
je 0x404608
lea edi, [eax + 0x10]
mov eax, 1
cmp dword [edi - 8], eax
jl 0x40460d
push 2
push esi
xor ecx, ecx
push 2
mov dword [edi - 0xc], eax
push edi
mov word [edi + 2], cx
call fcn.0042f00f
add esp, 0x10
cmp dword [edi - 0xc], 1
jne 0x4042ef
cmp word [edi], 0x22
jne 0x4042ef
mov bl, 1
jmp 0x4042f1
xor bl, bl
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40430d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test bl, bl
je 0x404350
mov eax, dword [esi - 0xc]
lea ecx, [esp + 0x10]
push ecx
dec eax
lea ecx, [esp + 0x38]
call fcn.004052d0
lea edi, [esp + 0x10]
call fcn.00403ab0
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 0x40434c
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 0x404369
call fcn.00403c30
lea edi, [eax + 0x10]
jmp 0x4043da
mov ecx, dword [eax]
test ecx, ecx
je 0x40437a
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x40438a
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fa44c
call eax
lea ebx, [esi + edi*2 - 2]
test eax, eax
je 0x4045fe
test ebx, ebx
je 0x40460d
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
test eax, eax
je 0x404608
cmp dword [eax + 8], 1
lea edi, [eax + 0x10]
jl 0x40460d
push 2
push ebx
xor ecx, ecx
push 2
mov dword [edi - 0xc], 1
push edi
mov word [edi + 2], cx
call fcn.0042f00f
add esp, 0x10
cmp dword [edi - 0xc], 1
jne 0x4043ea
cmp word [edi], 0x22
jne 0x4043ea
mov bl, 1
jmp 0x4043ec
xor bl, bl
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404408
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test bl, bl
je 0x404544
mov eax, dword [esi - 0xc]
lea edi, [eax - 1]
test edi, edi
jns 0x40441c
xor edi, edi
cmp edi, eax
jl 0x404432
mov eax, dword [esp + 0x1c]
call fcn.00403c30
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
jmp 0x4044a1
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x404447
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x40445f
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0x10]
mov ecx, 0x4fa44c
call eax
test eax, eax
je 0x4045fe
mov edx, dword [eax]
push 2
mov ecx, eax
mov eax, dword [edx]
push edi
call eax
test eax, eax
je 0x404608
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
test edi, edi
js 0x40460d
cmp edi, dword [ebx - 8]
jg 0x40460d
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.0042f00f
add esp, 0x10
lea eax, [esp + 0x1c]
lea edi, [esp + 0x10]
call fcn.00403ab0
add ebx, 0xfffffff0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404544
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
jmp 0x404544
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x404525
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x404517
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x404517
call fcn.00403c30
mov esi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40450e
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 0x404525
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x18]
push eax
call fcn.004034c0
lea ebx, [esp + 0x14]
call fcn.004051a0
call fcn.00405120
push 0x4d3880
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
call fcn.004034c0
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
call fcn.00404730
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404573
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 0x403fa0
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 0x4045b5
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 0x4045d1
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 0x4045f0
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.00403020
call fcn.00403690
push 0x80070057
call fcn.00403020
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 0x404636
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