Function at 0x40117a
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x41a0be
call fcn.004199a0
sub esp, 0x1c4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
mov esi, 0x423400
push dword [0x422060]
mov ecx, esi
call fcn.0040561c
lea ecx, [ebp - 0x54]
call fcn.00402488
mov edi, 0x41d394
mov dword [ebp - 0x54], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x28]
push eax
call fcn.00401e71
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004048d3
mov byte [ebp - 4], bl
push dword [ebp - 0x28]
call fcn.0040540c
pop ecx
mov dword [ebp - 0x40], ebx
push 3
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.004024a3
push 3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.004024a3
lea edx, [ebp - 0x28]
xor ecx, ecx
mov byte [ebp - 4], 3
call fcn.004067e7
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x40]
call fcn.00406f29
test al, al
jne 0x40125f
push str.GetFullPathName_Error
mov ecx, esi
call fcn.0040561c
push dword [ebp - 0x28]
call fcn.0040540c
push dword [ebp - 0x40]
call fcn.0040540c
pop ecx
mov dword [ebp - 0x54], edi
pop ecx
mov dword [ebp - 4], 4
jmp 0x401a58
push dword [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040540c
pop ecx
push 1
push ebx
lea ecx, [ebp - 0x54]
call fcn.00401df5
lea ecx, [ebp - 0xb0]
push 6
call fcn.004049a7
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0xb0]
push eax
push 0x41d180
mov byte [ebp - 4], 6
call fcn.00404b1c
jmp 0x4012b0
push ebx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 5
call fcn.00404e78
cmp byte [eax], bl
jne 0x401a93
push 1
lea ecx, [ebp - 0xb0]
pop esi
push esi
call fcn.00404e78
cmp byte [eax], bl
jne 0x401a93
cmp dword [ebp - 0xa0], ebx
jne 0x4012ef
mov dword [ebp - 0x2c], esi
jmp 0x401315
cmp dword [ebp - 0xa0], esi
jle 0x4012fc
call fcn.00401c2f
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call fcn.0040101b
test al, al
jne 0x401315
call fcn.00401c2f
lea ecx, [ebp - 0x2c]
call fcn.00401000
lea ecx, [ebp - 0xc4]
mov esi, eax
call fcn.00401f4a
push ebx
push esi
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 9
call fcn.00401131
lea ecx, [ebp - 0xb0]
push 3
call fcn.00404e78
mov al, byte [eax]
lea ecx, [ebp - 0xb0]
push 4
mov byte [ebp - 0x12], al
call fcn.00404e78
mov al, byte [eax]
lea ecx, [ebp - 0x60]
push 3
mov byte [ebp - 0x11], al
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call fcn.004024a3
cmp byte [ebp - 0x11], bl
mov byte [ebp - 4], 0xa
je 0x40139b
push 4
lea ecx, [ebp - 0xb0]
call fcn.00404e78
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x60]
push dword [eax]
call fcn.00401f0c
lea ecx, [ebp - 0x118]
call fcn.00401e59
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x140]
mov byte [ebp - 4], 0xb
call fcn.00407492
test al, al
jne 0x4013d8
mov eax, dword [str._cannot_find_sfx]
push 0x41ddd8
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xcc]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x120]
shr eax, 4
test al, 1
je 0x401401
mov eax, dword [str._cannot_find_sfx]
push 0x41ddd8
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xd0]
push eax
call sub.MSVCRT.dll__CxxThrowException
push 3
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call fcn.004024a3
push 5
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xc
call fcn.00404e78
cmp byte [eax], bl
je 0x40144b
push 5
lea ecx, [ebp - 0xb0]
call fcn.00404e78
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x6c]
push dword [eax]
call fcn.00401f0c
lea ecx, [ebp - 0x6c]
call fcn.00407820
lea ecx, [ebp - 0x94]
call fcn.00402488
mov dword [ebp - 0x94], edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xd
call fcn.00402488
mov dword [ebp - 0x80], edi
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xe
call fcn.00401dae
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x80]
push eax
call fcn.00401dae
mov eax, dword [ebp - 0xb8]
push 0x1c
mov eax, dword [eax]
add eax, 0xc
mov dword [ebp - 0x18], eax
call fcn.004053e5
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
mov byte [ebp - 4], 0xf
je 0x4014c3
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401ffe
mov dword [esi], 0x41d388
mov dword [ebp - 0x1c], esi
jmp 0x4014c8
mov dword [ebp - 0x1c], ebx
mov esi, ebx
cmp esi, ebx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x108], esi
je 0x4014dc
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.0040b012
cmp eax, ebx
je 0x401502
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
push 0x41ddc8
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x2c], 2
je 0x401910
push 0x48
call fcn.004053e5
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 0x11
je 0x40152a
mov ecx, eax
call fcn.00401c7a
mov esi, eax
jmp 0x40152c
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x30], esi
je 0x40153d
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [0x4233e0]
lea ecx, [esi + 0x10]
mov dword [esi + 0x40], eax
mov al, byte [ebp - 0x11]
mov byte [esi + 0xc], al
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0x12
call fcn.00401f0c
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
lea ecx, [ebp - 0x104]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
call fcn.00401c02
mov eax, dword [0x4233e0]
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x100], eax
mov al, byte [ebp - 0x11]
mov byte [ebp - 0xfc], al
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0x13
call fcn.00401f0c
lea ecx, [ebp - 0x1a8]
call fcn.00401b82
cmp dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0x14
mov byte [ebp - 0x1a8], bl
sete al
mov byte [ebp - 0x1a7], al
xor eax, eax
cmp byte [ebp - 0x12], bl
mov dword [ebp - 0x1a4], ebx
setne al
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00401f0c
mov al, byte [ebp - 0x12]
lea ecx, [ebp - 0x28]
push 3
mov byte [ebp - 0x194], al
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.004024a3
push 4
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x15
call fcn.00401adf
mov dword [ebp - 0xec], 0x41d380
lea eax, [ebp - 0x1d0]
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x104]
push esi
push eax
lea eax, [ebp - 0x1a8]
lea edx, [ebp - 0xec]
push eax
lea eax, [ebp - 0x80]
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040b278
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x15
call fcn.00405a24
cmp dword [ebp - 0x24], ebx
je 0x4016a3
push dword [ebp - 0x28]
mov ecx, dword [0x4233e0]
push str.Error:
push 0x405614
call fcn.00405607
mov ecx, eax
call fcn.0040561c
mov ecx, eax
call fcn.00405634
cmp dword [ebp - 0x18], ebx
jne 0x4016a3
mov dword [ebp - 0x18], 0x80004005
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov eax, ecx
or eax, edx
jne 0x4017cc
mov eax, dword [esi + 0x30]
or eax, dword [esi + 0x34]
jne 0x4017cc
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4016dd
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd4]
push 0x41ddc8
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x28]
call fcn.0040540c
pop ecx
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a8]
call fcn.00401d56
push dword [ebp - 0xf8]
call fcn.0040540c
cmp esi, ebx
pop ecx
mov byte [ebp - 4], 0x10
je 0x40170f
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
mov byte [ebp - 4], 0xe
je 0x401720
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [ebp - 0x80], edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1f
call fcn.00405a4d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xd
call fcn.00405a24
mov dword [ebp - 0x94], edi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x20
call fcn.00405a4d
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xc
call fcn.00405a24
push dword [ebp - 0x6c]
call fcn.0040540c
push dword [ebp - 0x118]
call fcn.0040540c
push dword [ebp - 0x60]
call fcn.0040540c
add esp, 0xc
mov dword [ebp - 0xc4], 0x41d378
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x21
call fcn.00405a4d
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.00405a24
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00404ac7
push dword [ebp - 0x40]
call fcn.0040540c
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0x22
jmp 0x401aba
mov eax, ecx
or eax, edx
je 0x401800
mov eax, 0x405614
push eax
push edx
push ecx
mov ecx, dword [0x4233e0]
push str.Archive_Errors:
push eax
call fcn.00405607
mov ecx, eax
call fcn.0040561c
mov ecx, eax
call fcn.004056cd
mov ecx, eax
call fcn.00405607
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov eax, ecx
or eax, edx
je 0x40183a
mov eax, 0x405614
push eax
push edx
push ecx
mov ecx, dword [0x4233e0]
push str.Sub_items_Errors:
push eax
call fcn.00405607
mov ecx, eax
call fcn.0040561c
mov ecx, eax
call fcn.004056cd
mov ecx, eax
call fcn.00405607
push dword [ebp - 0x28]
call fcn.0040540c
pop ecx
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a8]
call fcn.00401d56
push dword [ebp - 0xf8]
call fcn.0040540c
cmp esi, ebx
pop ecx
mov byte [ebp - 4], 0x10
je 0x40186c
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x40187d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x80], edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x17
call fcn.00405a4d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xd
call fcn.00405a24
mov dword [ebp - 0x94], edi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x18
call fcn.00405a4d
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xc
call fcn.00405a24
push dword [ebp - 0x6c]
call fcn.0040540c
push dword [ebp - 0x118]
call fcn.0040540c
push dword [ebp - 0x60]
call fcn.0040540c
add esp, 0xc
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.00401f65
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00404ac7
push dword [ebp - 0x40]
call fcn.0040540c
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0x19
jmp 0x401a58
push 4
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00401adf
mov dword [ebp - 0xec], 0x41d380
lea eax, [ebp - 0x34]
lea edx, [ebp - 0xec]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x11]
push eax
push ebx
push 1
lea eax, [ebp - 0x80]
push dword [ebp - 0x18]
mov ecx, esi
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004033a7
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x10
call fcn.00405a24
cmp dword [ebp - 0x30], ebx
ja 0x40197b
cmp dword [ebp - 0x34], ebx
jbe 0x401a71
push dword [ebp - 0x30]
mov ecx, 0x423400
push dword [ebp - 0x34]
push str.Errors:
push 0x405614
call fcn.00405607
mov ecx, eax
call fcn.0040561c
mov ecx, eax
call fcn.004056cd
cmp esi, ebx
mov byte [ebp - 4], 0xe
je 0x4019b1
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [ebp - 0x80], edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1b
call fcn.00405a4d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xd
call fcn.00405a24
mov dword [ebp - 0x94], edi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x1c
call fcn.00405a4d
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xc
call fcn.00405a24
push dword [ebp - 0x6c]
call fcn.0040540c
push dword [ebp - 0x118]
call fcn.0040540c
push dword [ebp - 0x60]
call fcn.0040540c
add esp, 0xc
mov dword [ebp - 0xc4], 0x41d378
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x1d
call fcn.00405a4d
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.00405a24
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00404ac7
push dword [ebp - 0x40]
call fcn.0040540c
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0x1e
lea ecx, [ebp - 0x54]
call fcn.00405a4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00405a24
push 2
pop eax
jmp 0x401ad0
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x401712
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xc8]
push 0x41ddc8
push eax
call sub.MSVCRT.dll__CxxThrowException
call fcn.0040100a
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00404ac7
push dword [ebp - 0x40]
call fcn.0040540c
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x54]
call fcn.00405a4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00405a24
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret