Function at 0x40117a
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x41c997
call fcn.0041be50
sub esp, 0x144
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
mov esi, 0x4263d0
push dword [0x425064]
mov ecx, esi
call fcn.00405a43
lea ecx, [ebp - 0x54]
call fcn.004023b3
mov edi, 0x41f3cc
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.00401d77
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404c36
mov byte [ebp - 4], bl
push dword [ebp - 0x28]
call fcn.0040577b
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.004023f0
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.004023f0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov byte [ebp - 4], 3
call fcn.00406fce
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x40]
call fcn.00407710
test al, al
jne 0x40125f
push str.GetFullPathName_Error
mov ecx, esi
call fcn.00405a43
push dword [ebp - 0x28]
call fcn.0040577b
push dword [ebp - 0x40]
call fcn.0040577b
pop ecx
mov dword [ebp - 0x54], edi
pop ecx
mov dword [ebp - 4], 4
jmp 0x4019f1
push dword [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040577b
pop ecx
push 1
push ebx
lea ecx, [ebp - 0x54]
call fcn.00401d13
lea ecx, [ebp - 0xb0]
push 6
call fcn.00404d09
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0xb0]
push eax
push 0x41f188
mov byte [ebp - 4], 6
call fcn.00404e7e
jmp 0x4012b0
push ebx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 5
call fcn.004051da
cmp byte [eax], bl
jne 0x401a2c
push 1
lea ecx, [ebp - 0xb0]
pop esi
push esi
call fcn.004051da
cmp byte [eax], bl
jne 0x401a2c
cmp dword [ebp - 0xa0], ebx
jne 0x4012ef
mov dword [ebp - 0x2c], esi
jmp 0x401315
cmp dword [ebp - 0xa0], esi
jle 0x4012fc
call fcn.00401b6d
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call fcn.0040101b
test al, al
jne 0x401315
call fcn.00401b6d
lea ecx, [ebp - 0x2c]
call fcn.00401000
lea ecx, [ebp - 0xc4]
mov esi, eax
call fcn.00401e59
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.004051da
mov al, byte [eax]
lea ecx, [ebp - 0xb0]
push 4
mov byte [ebp - 0x12], al
call fcn.004051da
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.004023f0
cmp byte [ebp - 0x11], bl
mov byte [ebp - 4], 0xa
je 0x40139b
push 4
lea ecx, [ebp - 0xb0]
call fcn.004051da
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x60]
push dword [eax]
call fcn.00401e1b
mov ecx, dword [ebp - 0x40]
call fcn.00407c97
test al, al
jne 0x4013c3
mov eax, dword [str._cannot_find_sfx]
push 0x420050
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xc8]
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.004023f0
push 5
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xb
call fcn.004051da
cmp byte [eax], bl
je 0x40140d
push 5
lea ecx, [ebp - 0xb0]
call fcn.004051da
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x6c]
push dword [eax]
call fcn.00401e1b
lea ecx, [ebp - 0x6c]
call fcn.0040806e
lea ecx, [ebp - 0x94]
call fcn.004023b3
mov dword [ebp - 0x94], edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.004023b3
mov dword [ebp - 0x80], edi
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xd
call fcn.00401ccc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x80]
push eax
call fcn.00401ccc
mov eax, dword [ebp - 0xb8]
push 0x1c
mov eax, dword [eax]
add eax, 0xc
mov dword [ebp - 0x18], eax
call fcn.00405754
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
mov byte [ebp - 4], 0xe
je 0x401485
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401f0d
mov dword [esi], 0x41f3c0
mov dword [ebp - 0x1c], esi
jmp 0x40148a
mov dword [ebp - 0x1c], ebx
mov esi, ebx
cmp esi, ebx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x120], esi
je 0x40149e
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.0040baed
cmp eax, ebx
je 0x4014c4
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xcc]
push 0x420040
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x2c], 2
je 0x4018b4
push 0x48
call fcn.00405754
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 0x10
je 0x4014ec
mov ecx, eax
call fcn.00401bb8
mov esi, eax
jmp 0x4014ee
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x30], esi
je 0x4014ff
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [0x4263b4]
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], 0x11
call fcn.00401e1b
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
lea ecx, [ebp - 0x11c]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
call fcn.00401b40
mov eax, dword [0x4263b4]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0x12
call fcn.00401e1b
lea ecx, [ebp - 0x104]
call fcn.00401b11
cmp dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0x13
mov byte [ebp - 0x103], bl
sete al
mov byte [ebp - 0x101], al
xor eax, eax
cmp byte [ebp - 0x12], bl
mov dword [ebp - 0xfc], ebx
setne al
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00401e1b
mov al, byte [ebp - 0x12]
lea ecx, [ebp - 0x28]
push 3
mov byte [ebp - 0x102], al
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.004023f0
push 4
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x14
call fcn.00401a78
mov dword [ebp - 0xe8], 0x41f3b8
lea eax, [ebp - 0x150]
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
lea eax, [ebp - 0x104]
lea edx, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x80]
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040bd53
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x14
call fcn.00405eec
cmp dword [ebp - 0x24], ebx
je 0x401665
push dword [ebp - 0x28]
mov ecx, dword [0x4263b4]
push str.Error:
push 0x405a3b
call fcn.00405a2e
mov ecx, eax
call fcn.00405a43
mov ecx, eax
call fcn.00405a5b
cmp dword [ebp - 0x18], ebx
jne 0x401665
mov dword [ebp - 0x18], 0x80004005
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov eax, ecx
or eax, edx
jne 0x40177f
mov eax, dword [esi + 0x30]
or eax, dword [esi + 0x34]
jne 0x40177f
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40169f
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xd0]
push 0x420040
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x28]
call fcn.0040577b
push dword [ebp - 0xf4]
call fcn.0040577b
push dword [ebp - 0x110]
call fcn.0040577b
add esp, 0xc
cmp esi, ebx
mov byte [ebp - 4], 0xf
je 0x4016ce
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
mov byte [ebp - 4], 0xd
je 0x4016df
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [ebp - 0x80], edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1e
call fcn.00405f15
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00405eec
mov dword [ebp - 0x94], edi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x1f
call fcn.00405f15
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xb
call fcn.00405eec
push dword [ebp - 0x6c]
call fcn.0040577b
push dword [ebp - 0x60]
call fcn.0040577b
pop ecx
mov dword [ebp - 0xc4], 0x41f3b0
pop ecx
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x20
call fcn.00405f15
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.00405eec
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00404e29
push dword [ebp - 0x40]
call fcn.0040577b
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0x21
jmp 0x401a53
mov eax, ecx
or eax, edx
je 0x4017b3
mov eax, 0x405a3b
push eax
push edx
push ecx
mov ecx, dword [0x4263b4]
push str.Archive_Errors:
push eax
call fcn.00405a2e
mov ecx, eax
call fcn.00405a43
mov ecx, eax
call fcn.00405b5d
mov ecx, eax
call fcn.00405a2e
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov eax, ecx
or eax, edx
je 0x4017ed
mov eax, 0x405a3b
push eax
push edx
push ecx
mov ecx, dword [0x4263b4]
push str.Sub_items_Errors:
push eax
call fcn.00405a2e
mov ecx, eax
call fcn.00405a43
mov ecx, eax
call fcn.00405b5d
mov ecx, eax
call fcn.00405a2e
push dword [ebp - 0x28]
call fcn.0040577b
push dword [ebp - 0xf4]
call fcn.0040577b
push dword [ebp - 0x110]
call fcn.0040577b
add esp, 0xc
cmp esi, ebx
mov byte [ebp - 4], 0xf
je 0x40181c
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x40182d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x80], edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x16
call fcn.00405f15
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00405eec
mov dword [ebp - 0x94], edi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x17
call fcn.00405f15
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xb
call fcn.00405eec
push dword [ebp - 0x6c]
call fcn.0040577b
push dword [ebp - 0x60]
call fcn.0040577b
pop ecx
mov byte [ebp - 4], 5
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.00401e74
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00404e29
push dword [ebp - 0x40]
call fcn.0040577b
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0x18
jmp 0x4019f1
push 4
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00401a78
mov dword [ebp - 0xe8], 0x41f3b8
lea eax, [ebp - 0x34]
lea edx, [ebp - 0xe8]
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], 0x19
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
call fcn.004032df
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
call fcn.00405eec
cmp dword [ebp - 0x30], ebx
ja 0x401920
cmp dword [ebp - 0x34], ebx
jbe 0x401a0a
push dword [ebp - 0x30]
mov ecx, 0x4263d0
push dword [ebp - 0x34]
push str.Errors:
push 0x405a3b
call fcn.00405a2e
mov ecx, eax
call fcn.00405a43
mov ecx, eax
call fcn.00405b5d
cmp esi, ebx
mov byte [ebp - 4], 0xd
je 0x401956
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [ebp - 0x80], edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1a
call fcn.00405f15
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00405eec
mov dword [ebp - 0x94], edi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x1b
call fcn.00405f15
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xb
call fcn.00405eec
push dword [ebp - 0x6c]
call fcn.0040577b
push dword [ebp - 0x60]
call fcn.0040577b
pop ecx
mov dword [ebp - 0xc4], 0x41f3b0
pop ecx
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x1c
call fcn.00405f15
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.00405eec
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00404e29
push dword [ebp - 0x40]
call fcn.0040577b
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0x1d
lea ecx, [ebp - 0x54]
call fcn.00405f15
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00405eec
push 2
pop eax
jmp 0x401a69
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4016d1
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd4]
push 0x420040
push eax
call sub.MSVCRT.dll__CxxThrowException
call fcn.0040100a
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00404e29
push dword [ebp - 0x40]
call fcn.0040577b
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x54]
call fcn.00405f15
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00405eec
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret