Function at 0x401090
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426531
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x435024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0xac], esi
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov eax, 1
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d180
add esp, 8
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040de60
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
call fcn.0040dad0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x8c], eax
cmp edi, eax
je 0x401544
cmp dword [edi + 0x14], 8
mov edx, 0x7ffffffe
mov ecx, dword [edi + 0x10]
mov eax, edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x60], edi
jb 0x4011b4
mov eax, dword [edi]
mov dword [ebp - 0x60], eax
cmp ecx, 8
jae 0x4011d3
movups xmm0, xmmword [eax]
mov edx, 7
mov dword [ebp - 0x7c], edx
movups xmmword [ebp - 0x44], xmm0
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x78], edi
jmp 0x40125b
mov eax, ecx
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, edx
mov dword [ebp - 0x7c], eax
inc eax
cmp eax, 0x7fffffff
ja 0x401a27
add eax, eax
cmp eax, 0x1000
jb 0x401222
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401a27
push ecx
call fcn.0040eae9
add esp, 4
test eax, eax
je 0x401a22
mov ecx, dword [ebp - 0x74]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40123b
test eax, eax
je 0x401239
push eax
call fcn.0040eae9
mov ecx, dword [ebp - 0x74]
add esp, 4
mov edi, eax
mov dword [ebp - 0x78], eax
jmp 0x40123e
xor edi, edi
mov dword [ebp - 0x78], edi
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x44], edi
push eax
push dword [ebp - 0x60]
push edi
call fcn.00410170
mov ecx, dword [ebp - 0x74]
add esp, 0xc
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp ecx, eax
jb 0x401445
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
ja 0x401353
cmp edx, 8
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
cmovae eax, edi
mov dword [ebp - 0x6c], eax
cmp ecx, 8
jae 0x4012be
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x1c], ecx
or eax, 4
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
jmp 0x401414
mov edi, ecx
mov eax, 0x7ffffffe
or edi, 7
cmp edi, 0x7ffffffe
cmova edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x401a27
add eax, eax
cmp eax, 0x1000
jb 0x40130f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401a27
push ecx
call fcn.0040eae9
add esp, 4
test eax, eax
je 0x401a22
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x401322
test eax, eax
je 0x401320
push eax
call fcn.0040eae9
add esp, 4
mov ecx, eax
jmp 0x401322
xor ecx, ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x2c], ecx
lea eax, [edx*2 + 2]
push eax
push dword [ebp - 0x6c]
push ecx
call fcn.00410170
mov eax, dword [ebp - 0x74]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x18], edi
or eax, 4
jmp 0x401414
mov edx, ecx
mov dword [ebp - 0x18], 7
sub edx, eax
xor esi, esi
mov word [ebp - 0x2c], si
cmp ecx, edx
jb 0x401a31
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x6c], ecx
cmovae eax, edi
lea eax, [eax + edx*2]
mov dword [ebp - 0x64], eax
cmp ecx, 7
ja 0x4013aa
lea esi, [ecx + ecx]
mov dword [ebp - 0x1c], ecx
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00410170
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x2c], ax
jmp 0x401405
cmp ecx, 0x7ffffffe
ja 0x401a2c
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4013ca
mov esi, 0x7ffffffe
jmp 0x4013d5
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004022e0
mov edi, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x64]
push edi
call fcn.00410170
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0xa8]
or eax, 0xc
or eax, 2
mov byte [ebp - 4], 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a650
add esp, 8
test al, al
je 0x401445
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x65], 1
je 0x401449
mov byte [ebp - 0x65], 0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x84]
test al, 2
je 0x4014a3
mov edx, dword [ebp - 0x18]
and eax, 0xfffffffd
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x90], eax
cmp edx, 8
jb 0x4014a3
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401499
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a22
push edx
push ecx
call fcn.0040eab8
add esp, 8
cmp byte [ebp - 0x65], 0
jne 0x4014e5
cmp dword [ebp - 0x7c], 8
lea edi, [ebp - 0x44]
mov eax, dword [ebp - 0x78]
cmovae edi, eax
cmp dword [ebp - 0x74], 7
jne 0x401650
mov ecx, str.__Arg0_
mov edx, 7
sub edi, ecx
nop dword [eax]
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x40164d
add ecx, 2
sub edx, 1
jne 0x4014d0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x401523
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401519
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a22
push edx
push ecx
call fcn.0040eab8
add esp, 8
mov edi, dword [ebp - 0x94]
add edi, 0x18
mov dword [ebp - 0x94], edi
cmp edi, dword [ebp - 0x8c]
jne 0x401184
mov edi, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x401584
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401574
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a22
push edx
push ecx
call fcn.0040eab8
mov edi, dword [ebp - 0xa0]
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
test edi, edi
je 0x401a02
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
cmp edi, eax
je 0x40160f
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x4015ef
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4015df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a22
mov eax, edx
push ecx
push eax
call fcn.0040eab8
mov eax, dword [ebp - 0x8c]
add esp, 8
xor ecx, ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], cx
add edi, 0x18
cmp edi, eax
jne 0x4015b0
mov edi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x98]
sub eax, edi
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4019f8
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a22
jmp 0x4019f8
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0x44]
cmovae ecx, eax
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x401671
mov edi, ecx
cmp word [edi], 0x20
je 0x4016a7
add edi, 2
sub eax, 1
jne 0x401663
or edi, 0xffffffff
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x70], ecx
test ecx, ecx
je 0x401794
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x80], edx
cmp ecx, edx
jae 0x4016ad
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x40169b
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x20
jmp 0x401794
sub edi, ecx
sar edi, 1
jmp 0x401674
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x401a2c
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x6c], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4016d7
mov ecx, 0x7ffffffe
jmp 0x4016fb
mov eax, edx
shr eax, 1
mov dword [ebp - 0x60], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x60]
cmp edx, eax
jbe 0x4016f1
mov ecx, 0x7ffffffe
jmp 0x4016fb
mov eax, dword [ebp - 0x60]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x60], ecx
push eax
mov ecx, esi
call fcn.004022e0
cmp dword [ebp - 0x80], 8
mov ecx, eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], ecx
lea edx, [eax + eax]
lea eax, [edx + ecx]
mov dword [ebp - 0x70], eax
push edx
jb 0x40177c
mov eax, dword [esi]
push eax
push ecx
mov dword [ebp - 0x60], eax
call fcn.00410170
mov eax, dword [ebp - 0x70]
add esp, 0xc
mov dword [eax], 0x20
mov eax, dword [ebp - 0x80]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x60]
cmp ecx, 0x1000
jb 0x401770
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a22
mov eax, edx
push ecx
push eax
call fcn.0040eab8
add esp, 8
jmp 0x40178f
push esi
push ecx
call fcn.00410170
mov eax, dword [ebp - 0x70]
add esp, 0xc
mov dword [eax], 0x20
mov eax, dword [ebp - 0x64]
mov dword [esi], eax
cmp edi, 0xffffffff
je 0x4018b5
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x70], edx
cmp ecx, edx
jae 0x4017cb
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x4017bf
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x22
jmp 0x4018b5
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x401a2c
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x80], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4017f5
mov ecx, 0x7ffffffe
jmp 0x401819
mov eax, edx
shr eax, 1
mov dword [ebp - 0x64], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x64]
cmp edx, eax
jbe 0x40180f
mov ecx, 0x7ffffffe
jmp 0x401819
mov eax, dword [ebp - 0x64]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x60], ecx
push eax
mov ecx, esi
call fcn.004022e0
cmp dword [ebp - 0x70], 8
mov ecx, eax
mov eax, dword [ebp - 0x80]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x6c], ecx
lea edx, [eax + eax]
lea eax, [edx + ecx]
mov dword [ebp - 0x80], eax
push edx
jb 0x40189d
mov eax, dword [esi]
push eax
push ecx
mov dword [ebp - 0x64], eax
call fcn.00410170
mov eax, dword [ebp - 0x80]
add esp, 0xc
mov dword [eax], 0x22
mov eax, dword [ebp - 0x70]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x64]
cmp ecx, 0x1000
jb 0x401891
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a22
mov eax, edx
push ecx
push eax
call fcn.0040eab8
add esp, 8
jmp 0x4018b0
push esi
push ecx
call fcn.00410170
mov eax, dword [ebp - 0x80]
add esp, 0xc
mov dword [eax], 0x22
mov eax, dword [ebp - 0x6c]
mov dword [esi], eax
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x74]
mov ecx, esi
cmovae eax, dword [ebp - 0x78]
push edx
push eax
call fcn.00401cc0
cmp edi, 0xffffffff
je 0x4019cd
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], ecx
cmp edx, ecx
jae 0x401906
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 8
jb 0x4018f4
mov eax, dword [esi]
mov ecx, dword [ebp - 0x44]
mov dword [eax + edx*2], 0x22
mov eax, dword [ebp - 0x30]
jmp 0x4014eb
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 1
jb 0x401a2c
lea eax, [edx + 1]
mov edi, eax
mov dword [ebp - 0x88], eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x401933
mov edi, 0x7ffffffe
jmp 0x401951
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x401949
mov edi, 0x7ffffffe
jmp 0x401951
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004022e0
mov ecx, eax
mov dword [esi + 0x14], edi
mov eax, dword [ebp - 0x88]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x70]
add eax, eax
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x6c], 8
push eax
lea edi, [ecx + eax]
mov dword [ebp - 0x88], edi
jb 0x4019d8
mov edi, dword [esi]
push edi
push ecx
call fcn.00410170
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [eax], 0x22
mov eax, dword [ebp - 0x6c]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x4019be
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x401a22
mov edi, edx
push ecx
push edi
call fcn.0040eab8
mov eax, dword [ebp - 0x64]
add esp, 8
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
jmp 0x4014eb
push esi
push ecx
call fcn.00410170
mov eax, dword [ebp - 0x64]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
mov dword [edi], 0x22
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
jmp 0x4014eb
push ecx
push edi
call fcn.0040eab8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040eaaa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00412e5f
call fcn.004022c0
call fcn.00402180
call fcn.00402060
int3