Function at 0x401039
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x41da1a
call fcn.0041d040
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push 3
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.00402126
push 3
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x16], bl
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.00402126
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040210b
mov esi, 0x4213c4
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401c30
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00402e60
push dword [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004030da
cmp dword [ebp - 0x38], ebx
pop ecx
jle 0x4010d3
push 1
push ebx
lea ecx, [ebp - 0x40]
call fcn.00401bcc
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
jle 0x4011e9
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov edx, 0x4270d4
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi]
call fcn.0040318e
cmp eax, ebx
jne 0x401101
mov byte [ebp - 0xd], 1
jmp 0x4011da
lea eax, [ebp - 0x64]
push 2
push eax
mov ecx, edi
call fcn.00401d2a
mov ecx, dword [eax]
mov edx, 0x4270cc
mov byte [ebp - 4], 4
call fcn.0040318e
push dword [ebp - 0x64]
cmp eax, ebx
sete byte [ebp - 0xe]
mov byte [ebp - 4], 2
call fcn.004030da
cmp byte [ebp - 0xe], bl
pop ecx
push 2
je 0x401174
lea eax, [ebp - 0xec]
mov ecx, edi
push eax
call fcn.00401d09
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00401ccb
push dword [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.004030da
pop ecx
lea ecx, [ebp - 0x58]
call fcn.00405161
cmp dword [ebp - 0x54], ebx
setne byte [ebp - 0x16]
jmp 0x4011da
lea eax, [ebp - 0xe0]
mov ecx, edi
push eax
call fcn.00401d2a
mov ecx, dword [eax]
mov edx, 0x4270c4
mov byte [ebp - 4], 6
call fcn.0040318e
push dword [ebp - 0xe0]
cmp eax, ebx
sete byte [ebp - 0xe]
mov byte [ebp - 4], 2
call fcn.004030da
cmp byte [ebp - 0xe], bl
pop ecx
je 0x4011da
lea eax, [ebp - 0xc4]
push 2
push eax
mov ecx, edi
call fcn.00401d09
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00401ccb
push dword [ebp - 0xc4]
mov byte [ebp - 4], 2
call fcn.004030da
pop ecx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x38]
jl 0x4010df
push 3
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.00402126
mov ecx, dword [0x427a28]
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.00403f38
push 3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00402126
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x9c]
push eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.004046e3
test al, al
jne 0x40127c
mov edx, 0x4270a8
xor ecx, ecx
call fcn.00418110
push dword [ebp - 0x2c]
call fcn.004030da
push dword [ebp - 0x4c]
call fcn.004030da
pop ecx
mov dword [ebp - 0x40], esi
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.00403419
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004033f0
push 1
pop ebx
jmp 0x4016f8
push 0x1c
call fcn.004030b3
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
cmp edi, ebx
mov byte [ebp - 4], 0xb
je 0x4012a7
lea ecx, [edi + 8]
mov dword [edi + 4], ebx
call fcn.00401e78
mov dword [edi], 0x4213b8
mov dword [ebp - 0x14], edi
jmp 0x4012ac
mov dword [ebp - 0x14], ebx
mov edi, ebx
cmp edi, ebx
mov byte [ebp - 4], 9
mov dword [ebp - 0xd4], edi
je 0x4012c0
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.0040abf7
cmp eax, ebx
je 0x401302
mov ecx, eax
call fcn.00401000
cmp edi, ebx
mov byte [ebp - 4], 9
je 0x4012e4
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x2c]
call fcn.004030da
push dword [ebp - 0x4c]
call fcn.004030da
pop ecx
mov dword [ebp - 0x40], esi
pop ecx
mov byte [ebp - 4], 0xd
jmp 0x401260
push 0x54
call fcn.004030b3
pop ecx
mov dword [ebp - 0xd0], eax
cmp eax, ebx
mov byte [ebp - 4], 0xe
je 0x401323
mov ecx, eax
call fcn.0040193d
mov edi, eax
jmp 0x401325
xor edi, edi
cmp edi, ebx
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1c], edi
je 0x401336
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.0040c0c9
cmp dword [ebp - 0x6c], ebx
lea ecx, [edi + 0x48]
setne al
mov byte [edi + 0x44], al
lea eax, [ebp - 0x70]
push eax
call fcn.00401ccb
lea ecx, [ebp - 0xb8]
call fcn.0040190e
cmp byte [ebp - 0x16], bl
mov byte [ebp - 4], 0x10
je 0x40136f
lea eax, [ebp - 0x58]
jmp 0x40138f
push dword [ebp - 0x9c]
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401d2a
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0xa8]
call fcn.00401ccb
test byte [ebp - 0x20], 1
mov dword [ebp - 4], 0x10
je 0x4013b4
push dword [ebp - 0xc4]
call fcn.004030da
pop ecx
mov al, byte [ebp - 0xd]
xor ecx, ecx
cmp al, bl
mov byte [ebp - 0xb6], al
setne cl
mov dword [ebp - 0xac], ecx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xb0], ebx
mov byte [ebp - 0xb5], bl
call fcn.0040210b
mov dword [ebp - 0x84], esi
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x12
call fcn.0040210b
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x84]
push eax
mov byte [ebp - 4], 0x13
call fcn.00401b85
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x98]
push eax
call fcn.00401b85
lea ecx, [ebp - 0x138]
call fcn.004017c3
push 0x4270a4
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x14
call fcn.00401c30
push 1
lea ecx, [ebp - 0x64]
pop eax
mov byte [ebp - 4], 0x15
push eax
push eax
push eax
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.004039c8
push dword [ebp - 0x64]
mov byte [ebp - 4], 0x14
call fcn.004030da
pop ecx
mov byte [ebp - 0x15], bl
push 4
lea ecx, [ebp - 0xcc]
call fcn.0040178a
mov dword [ebp - 0xcc], 0x4213b0
cmp byte [ebp - 0xd], bl
push ebx
lea eax, [ebp - 0x15]
push edi
push eax
mov ecx, dword [ebp - 0x14]
sete al
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0xcc]
mov byte [ebp - 4], 0x16
call fcn.004027a4
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x14
call fcn.004033f0
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
jne 0x4015fe
cmp dword [edi + 0x38], ebx
jne 0x4014e1
cmp byte [edi + 0x3c], bl
je 0x40159a
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x13
call fcn.0040181b
mov dword [ebp - 0x98], esi
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x17
call fcn.00403419
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x12
call fcn.004033f0
mov dword [ebp - 0x84], esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x18
call fcn.00403419
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.004033f0
push dword [ebp - 0xa8]
call fcn.004030da
mov eax, dword [ebp - 0x1c]
pop ecx
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x401555
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x401566
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x2c]
call fcn.004030da
push dword [ebp - 0x4c]
call fcn.004030da
pop ecx
mov dword [ebp - 0x40], esi
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x19
call fcn.00403419
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004033f0
push 2
jmp 0x401276
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x13
call fcn.0040181b
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x12
call fcn.00401b4d
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00401b4d
push dword [ebp - 0xa8]
call fcn.004030da
mov eax, dword [ebp - 0x1c]
pop ecx
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x4015e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x4016da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4016da
cmp ecx, 0x80004004
jne 0x401663
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x13
call fcn.0040181b
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x12
call fcn.00401b4d
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00401b4d
push dword [ebp - 0xa8]
call fcn.004030da
pop ecx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.0040bfb8
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x40165c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0xff
jmp 0x4016da
cmp byte [ebp - 0x15], bl
jne 0x401720
cmp ecx, 1
jne 0x40171b
mov edx, str.Error_in_archive
xor ecx, ecx
call fcn.00418110
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x13
call fcn.0040181b
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x12
call fcn.00401b4d
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00401b4d
push dword [ebp - 0xa8]
call fcn.004030da
pop ecx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.0040bfb8
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x4016d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
pop ebx
push dword [ebp - 0x2c]
call fcn.004030da
push dword [ebp - 0x4c]
call fcn.004030da
pop ecx
mov byte [ebp - 4], 1
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00401b4d
push dword [ebp - 0x58]
call fcn.004030da
push dword [ebp - 0x70]
call fcn.004030da
pop ecx
mov eax, ebx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
call fcn.00401000
cmp dword [ebp - 0x20], 0x8007000e
jne 0x401681
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x13
call fcn.0040181b
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x12
call fcn.00401b4d
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00401b4d
push dword [ebp - 0xa8]
call fcn.004030da
pop ecx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.0040bfb8
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x401783
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x4016d9