Function at 0x4037d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4191d7
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x100]
xor edi, edi
mov dword [ebp - 0xfc], edi
push ecx
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x100], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [ebp - 0x108], ecx
test ecx, ecx
je 0x40421e
mov byte [ebp - 0x104], 0
xor eax, eax
mov dword [ebp - 0xf8], eax
cmp eax, dword [ebp - 0x100]
je 0x404146
mov edx, dword [ecx + eax*4]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403871
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403250
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
cmp esi, 7
mov edx, dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
seta byte [ebp - 0xee]
cmp edx, 0xb
jne 0x403eb4
mov ecx, str.__integrate
test edx, edx
je 0x4038db
sub eax, ecx
mov dword [ebp - 0xfc], eax
nop
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x403eb1
mov eax, dword [ebp - 0xfc]
add ecx, 2
sub edx, 1
jne 0x4038c0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x5c], ax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0xf8]
inc eax
mov byte [ebp - 4], 3
mov dword [ebp - 0xf8], eax
cmp eax, dword [ebp - 0x100]
je 0x403958
mov edx, dword [ebp - 0x108]
mov edx, dword [edx + eax*4]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xfc], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403935
sub ecx, dword [ebp - 0xfc]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.004051b0
mov eax, dword [ebp - 0xf8]
inc eax
mov dword [ebp - 0xf8], eax
cmp eax, dword [ebp - 0x100]
jge 0x403d1d
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + eax*4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403980
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004051b0
mov ecx, 5
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x90], 0
cmovb ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 7
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xa4]
push eax
movups xmmword [ebp - 0xa4], xmm0
call fcn.00403250
mov eax, dword [ebp - 0xa4]
lea esi, [ebp - 0xa4]
mov edx, dword [ebp - 0x94]
or edi, 0x10
cmp dword [ebp - 0x90], 7
mov dword [ebp - 0xf4], edi
seta byte [ebp - 0xee]
mov dword [ebp - 0xfc], eax
cmova esi, eax
cmp edx, 5
jne 0x403a46
mov ecx, str.__out
test edx, edx
je 0x403a37
sub esi, ecx
nop dword [eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x403a40
add ecx, 2
sub edx, 1
jne 0x403a20
mov eax, dword [ebp - 0xfc]
mov byte [ebp - 0xed], 1
jmp 0x403a4d
mov eax, dword [ebp - 0xfc]
mov byte [ebp - 0xed], 0
cmp byte [ebp - 0xee], 0
je 0x403a91
mov ecx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x403a81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404242
jmp 0x403a87
mov edx, dword [ebp - 0xfc]
push ecx
push edx
call fcn.0040d068
add esp, 8
cmp byte [ebp - 0xed], 0
je 0x403ae8
mov eax, dword [ebp - 0xf8]
inc eax
mov dword [ebp - 0xf8], eax
cmp eax, dword [ebp - 0x100]
je 0x403d15
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + eax*4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ac1
sub eax, esi
lea ecx, [ebp - 0x5c]
sar eax, 1
push eax
push edx
call fcn.004051b0
mov eax, dword [ebp - 0xf8]
mov esi, dword [ebp - 0x18]
jmp 0x403958
mov ecx, 2
mov dword [ebp - 0xac], 0
cmp dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
cmovb ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 7
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xbc]
push eax
movups xmmword [ebp - 0xbc], xmm0
call fcn.00403250
mov eax, dword [ebp - 0xf4]
or eax, 0x20
mov byte [ebp - 4], 4
lea esi, [ebp - 0xbc]
mov ecx, dword [ebp - 0xbc]
or eax, 1
cmp dword [ebp - 0xa8], 7
mov edx, dword [ebp - 0xac]
cmova esi, ecx
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x10c], ecx
cmp edx, 2
jne 0x403bb5
mov ecx, 0x41ffe4
test edx, edx
je 0x403ba6
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x403bb5
add ecx, 2
sub edx, 1
jne 0x403b80
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0xed], 1
jmp 0x403c4d
mov edi, dword [ebp - 0x60]
mov byte [ebp - 0xed], 1
jmp 0x403c4d
mov ecx, 7
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
cmovb ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 7
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x74]
push eax
movups xmmword [ebp - 0x74], xmm0
call fcn.00403250
mov eax, dword [ebp - 0xf4]
lea esi, [ebp - 0x74]
mov edi, dword [ebp - 0x60]
or eax, 0x42
mov edx, dword [ebp - 0x64]
cmp edi, 7
mov dword [ebp - 0xf4], eax
cmova esi, dword [ebp - 0x74]
cmp edx, 7
jne 0x403c46
mov ecx, 0x41ffec
test edx, edx
je 0x403c37
sub esi, ecx
nop word [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x403c40
add ecx, 2
sub edx, 1
jne 0x403c20
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0xed], 1
jmp 0x403c4d
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0xed], 0
test al, 2
je 0x403c97
and eax, 0xfffffffd
mov dword [ebp - 0xf4], eax
cmp edi, 7
jbe 0x403c97
mov edx, dword [ebp - 0x74]
lea ecx, [edi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403c87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404242
push ecx
push edx
call fcn.0040d068
mov eax, dword [ebp - 0xf4]
add esp, 8
mov dword [ebp - 4], 3
test al, 1
je 0x403ceb
and eax, 0xfffffffe
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xa8]
cmp eax, 7
jbe 0x403ceb
mov edx, dword [ebp - 0x10c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403ce1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404242
push ecx
push edx
call fcn.0040d068
add esp, 8
mov eax, dword [ebp - 0x104]
mov ecx, 1
cmp byte [ebp - 0xed], 0
mov edi, dword [ebp - 0xf4]
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xf8]
mov esi, dword [ebp - 0x18]
jmp 0x403958
cmp dword [ebp - 0x4c], 0
je 0x403e18
cmp dword [ebp - 0x34], 0
je 0x403e18
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.00401310
mov ecx, dword [ebp - 0x30]
mov edi, eax
cmp ecx, 7
jbe 0x403d78
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403d6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404242
push ecx
push edx
call fcn.0040d068
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x403dc6
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403dbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404242
push ecx
push edx
call fcn.0040d068
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp esi, 7
jbe 0x403e11
mov ecx, dword [ebp - 0x2c]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x403e07
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404242
push esi
push ecx
call fcn.0040d068
add esp, 8
mov eax, edi
jmp 0x404200
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x403e56
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403e4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404242
push ecx
push edx
call fcn.0040d068
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x4040f9
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403ea2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404242
push ecx
push edx
call fcn.0040d068
add esp, 8
jmp 0x4040f9
mov edx, dword [ebp - 0x1c]
mov ecx, 2
mov dword [ebp - 0xc4], 0
cmp edx, ecx
mov dword [ebp - 0xc0], 0
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
cmovb ecx, edx
cmp byte [ebp - 0xee], 0
push ecx
cmovne eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xd4]
push eax
movups xmmword [ebp - 0xd4], xmm0
call fcn.00403250
mov eax, dword [ebp - 0xf4]
or eax, 0x80
mov byte [ebp - 4], 5
lea esi, [ebp - 0xd4]
mov ecx, dword [ebp - 0xd4]
or eax, 4
cmp dword [ebp - 0xc0], 7
mov edx, dword [ebp - 0xc4]
seta byte [ebp - 0xee]
mov dword [ebp - 0xf4], eax
cmova esi, ecx
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x10c], ecx
cmp edx, 2
jne 0x403f85
mov ecx, 0x41fffc
test edx, edx
je 0x403f76
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x403f85
add ecx, 2
sub edx, 1
jne 0x403f50
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0xed], 1
jmp 0x40402d
mov edi, dword [ebp - 0x78]
mov byte [ebp - 0xed], 1
jmp 0x40402d
mov ecx, 7
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
cmovb ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 7
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x8c]
push eax
movups xmmword [ebp - 0x8c], xmm0
call fcn.00403250
mov eax, dword [ebp - 0xf4]
lea esi, [ebp - 0x8c]
mov edi, dword [ebp - 0x78]
or eax, 0x108
mov edx, dword [ebp - 0x7c]
cmp edi, 7
mov dword [ebp - 0xf4], eax
cmova esi, dword [ebp - 0x8c]
cmp edx, 7
jne 0x404026
mov ecx, str.__quiet
test edx, edx
je 0x404017
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x404020
add ecx, 2
sub edx, 1
jne 0x404000
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0xed], 1
jmp 0x40402d
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0xed], 0
test al, 8
je 0x40407a
and eax, 0xfffffff7
mov dword [ebp - 0xf4], eax
cmp edi, 7
jbe 0x40407a
mov edx, dword [ebp - 0x8c]
lea ecx, [edi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40406a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404247
push ecx
push edx
call fcn.0040d068
mov eax, dword [ebp - 0xf4]
add esp, 8
mov dword [ebp - 4], 1
test al, 4
je 0x4040d2
and eax, 0xfffffffb
cmp byte [ebp - 0xee], 0
mov dword [ebp - 0xf4], eax
je 0x4040d2
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x10c]
mov eax, edx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4040c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404247
push ecx
push edx
call fcn.0040d068
add esp, 8
mov ecx, dword [ebp - 0x104]
cmp byte [ebp - 0xed], 0
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0xf4]
movzx eax, cl
mov ecx, 1
cmovne eax, ecx
mov byte [ebp - 0x104], al
mov byte [ebp - 4], 0
cmp esi, 7
jbe 0x404134
mov ecx, dword [ebp - 0x2c]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x40412a
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404247
push esi
push ecx
call fcn.0040d068
add esp, 8
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0x108]
inc eax
jmp 0x403842
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x104]
mov dword [0x4239b4], eax
call fcn.00404250
jmp 0x404200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040cdb6
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xec]
call fcn.00405100
push 0x4214c4
lea eax, [ebp - 0xec]
push eax
call fcn.0040e15a
call fcn.0041012f
call fcn.0041012f
int3