Function at 0x401119
Capabilities:
Accept command line arguments
Create directory
Delete directory
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
push 4
call fcn.00401fc8
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
mov edi, 0x201
je 0x40114a
push edi
mov ecx, esi
call fcn.00401813
mov dword [0x4073b0], esi
jmp 0x401150
mov dword [0x4073b0], ebx
push 4
call fcn.00401fc8
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40116e
push edi
mov ecx, esi
call fcn.00401813
mov dword [0x4073ac], esi
jmp 0x401174
mov dword [0x4073ac], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [0x407434], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7f02
push dword [0x407434]
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x105
lea ecx, [ebp - 8]
call fcn.00401813
push 0x104
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x401225
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x4073ac]
mov esi, str.Creat
push esi
mov dword [0x4073a8], eax
call fcn.00402049
pop ecx
inc eax
push eax
mov ecx, edi
call fcn.00401813
push esi
push dword [edi]
call fcn.0040211c
pop ecx
pop ecx
push dword [ebp - 8]
mov ecx, dword [0x4073ac]
call fcn.00401865
jmp 0x401333
push str._tstsigma
mov byte [ebp + 0xb], bl
push dword [ebp - 0x30]
call fcn.004020d1
pop ecx
test eax, eax
pop ecx
je 0x40123f
mov byte [ebp + 0xb], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00401c0e
add esp, 0x14
test eax, eax
jne 0x40127c
cmp byte [ebp + 0xb], bl
je 0x40130e
cmp dword [ebp - 0x2c], ebx
jne 0x40130e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
add eax, 0xfffffffc
push ebx
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
lea eax, [ebp - 0x4c]
push 4
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x401301
cmp dword [ebp - 0x34], 4
jne 0x401301
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffffc
push eax
mov dword [ebp - 0x24], eax
call fcn.00401fc8
pop ecx
mov dword [ebp - 0x38], eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x34]
push ebx
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x401301
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x34], edi
jne 0x401301
push ebx
push ebx
push ebx
call fcn.0040236f
push edi
push dword [ebp - 0x38]
push eax
call fcn.0040236f
add esp, 0x18
cmp eax, dword [ebp - 0x4c]
je 0x40133f
push str.SelfExtractor_program_altered_r_n_it_could_be_due_to_an_error_on_the_transmission__r_nCant_continue__sorry
call fcn.004018ac
pop ecx
jmp 0x401344
mov edi, dword [0x4073ac]
mov esi, str.LocMks
push esi
call fcn.00402049
pop ecx
inc eax
push eax
mov ecx, edi
call fcn.00401813
push esi
push dword [edi]
call fcn.0040211c
pop ecx
pop ecx
call fcn.004018f0
mov esi, eax
jmp 0x4016a1
cmp byte [ebp + 0xb], bl
je 0x40135a
cmp dword [ebp - 8], ebx
je 0x401352
push dword [ebp - 8]
call fcn.00401fd3
pop ecx
push 1
pop eax
jmp 0x40180c
mov edi, 0x105
lea ecx, [ebp - 0xc]
push edi
call fcn.00401813
push dword [ebp - 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
lea ecx, [ebp - 4]
call fcn.00401813
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0040211c
push dword [ebp - 0xc]
call fcn.00402049
mov ecx, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp byte [ecx + eax - 1], 0x5c
jne 0x4013af
push eax
call fcn.00402049
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax + ecx - 1], bl
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
lea ecx, [ebp - 0x10]
call fcn.00401813
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x50]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004019f6
add esp, 0x14
test eax, eax
je 0x401670
push dword [ebp - 0x10]
call fcn.0040400f
cmp eax, ebx
pop ecx
mov dword [ebp - 0x24], eax
jne 0x40141b
mov edi, dword [0x4073ac]
mov esi, str.unzOpn
push esi
call fcn.00402049
pop ecx
inc eax
push eax
mov ecx, edi
call fcn.00401813
push esi
push dword [edi]
call fcn.0040211c
pop ecx
pop ecx
jmp 0x401670
push 1
pop edi
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
call fcn.00401857
push dword [ebp - 0xc]
call fcn.00402049
pop ecx
mov ecx, dword [ebp - 0xc]
cmp byte [eax + ecx - 1], 0x5c
je 0x40144c
push 0x406054
push dword [ebp - 4]
call fcn.00402145
pop ecx
pop ecx
push 0x406050
lea ecx, [ebp - 4]
call fcn.00401865
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.00401ff2
pop ecx
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00401865
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4014b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40148c
inc edi
jmp 0x40141e
mov ecx, dword [0x4073ac]
push str.MkD
mov dword [0x4073a8], eax
call fcn.0040182b
push dword [ebp - 4]
mov ecx, dword [0x4073ac]
call fcn.00401865
jmp 0x401670
mov eax, 0x2000
push eax
mov dword [ebp - 0x48], eax
call fcn.00401fc8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call fcn.00401dcb
mov eax, dword [ebp - 0x20]
add esp, 0x10
xor edi, edi
cmp byte [eax], bl
je 0x401523
push dword [ebp - 4]
add eax, edi
mov dword [ebp + 8], eax
mov eax, dword [0x4073b0]
push dword [eax]
call fcn.0040211c
push dword [ebp + 8]
push dword [ebp - 0x24]
call fcn.00401ba0
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x38], eax
jne 0x40164a
push dword [ebp + 8]
call fcn.00402049
lea edi, [edi + eax + 1]
mov eax, dword [ebp - 0x20]
pop ecx
cmp byte [edi + eax], bl
jne 0x4014e1
push dword [ebp - 0x24]
call fcn.00404370
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
push dword [ebp - 0x10]
call edi
push ebx
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x3c]
push 4
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x201
call fcn.00401fc8
mov dword [ebp - 0x1c], eax
mov byte [eax], bl
cmp dword [ebp - 0x3c], ebx
pop ecx
je 0x4015a0
push dword [0x4073b0]
lea ecx, [ebp - 0x1c]
call fcn.00401857
push str._tex_def.jpg
lea ecx, [ebp - 0x1c]
call fcn.00401865
push dword [ebp - 0x1c]
push dword [ebp - 0x3c]
push 1
push ebx
push ebx
push dword [ebp - 0x14]
call esi
push eax
push dword [ebp - 0x14]
call fcn.00401a4f
add esp, 0x10
push 0x201
call fcn.00401fc8
pop ecx
mov dword [ebp - 0x28], eax
mov byte [eax], bl
push dword [0x4073b0]
lea ecx, [ebp - 0x28]
call fcn.00401857
push str._bbg.puz
lea ecx, [ebp - 0x28]
call fcn.00401865
push dword [ebp - 0x28]
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x14]
call esi
push eax
push dword [ebp - 0x14]
call fcn.00401a4f
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x201
call fcn.00401fc8
pop ecx
mov dword [ebp - 0x18], eax
mov byte [eax], bl
push dword [0x4073b0]
lea ecx, [ebp - 0x18]
call fcn.00401857
push 0x406054
lea ecx, [ebp - 0x18]
call fcn.00401865
push str._bbg.exe
lea ecx, [ebp - 0x18]
call fcn.00401865
push str._test:
push dword [ebp - 0x30]
call fcn.004020d1
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x4016b6
push 0x406014
lea ecx, [ebp - 0x18]
call fcn.00401865
push esi
jmp 0x4016c9
mov ecx, dword [0x4073ac]
push 0x406010
call fcn.0040182b
push dword [ebp + 8]
mov ecx, dword [0x4073ac]
call fcn.00401865
mov eax, dword [ebp - 0x38]
mov dword [0x4072a4], eax
call fcn.004018f0
cmp dword [ebp - 0x10], ebx
mov esi, eax
je 0x401685
push dword [ebp - 0x10]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 4], ebx
je 0x401693
push dword [ebp - 4]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x4016a1
push dword [ebp - 0xc]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 8], ebx
je 0x4016af
push dword [ebp - 8]
call fcn.00401fd3
pop ecx
mov eax, esi
jmp 0x40180c
push str.__sfxv:
lea ecx, [ebp - 0x18]
call fcn.00401865
push dword [section..data]
lea ecx, [ebp - 0x18]
call fcn.00401865
push dword [ebp - 0x18]
call fcn.00401f51
pop ecx
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x3c], ebx
je 0x4016e9
push dword [ebp - 0x1c]
call edi
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp byte [eax], bl
je 0x401764
push dword [ebp - 4]
add eax, esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x178]
push eax
call fcn.0040211c
lea eax, [ebp - 0x178]
push 0x406054
push eax
call fcn.00402145
push dword [ebp - 0x30]
lea eax, [ebp - 0x178]
push eax
call fcn.00402145
add esp, 0x18
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x178]
push eax
call edi
test eax, eax
jne 0x40174f
cmp dword [ebp + 8], 0xa
jge 0x40174f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 8]
jmp 0x40172c
push dword [ebp - 0x30]
call fcn.00402049
lea esi, [esi + eax + 1]
mov eax, dword [ebp - 0x20]
pop ecx
cmp byte [esi + eax], bl
jne 0x4016f2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0x20]
call fcn.00401fd3
mov eax, dword [0x4073b0]
push dword [eax]
call fcn.00401fd3
mov eax, dword [0x4073ac]
push dword [eax]
call fcn.00401fd3
add esp, 0xc
push 0x7f00
push dword [0x407434]
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x18], ebx
je 0x4017b6
push dword [ebp - 0x18]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x4017c4
push dword [ebp - 0x28]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x4017d2
push dword [ebp - 0x1c]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x4017e0
push dword [ebp - 0x10]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 4], ebx
je 0x4017ee
push dword [ebp - 4]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x4017fc
push dword [ebp - 0xc]
call fcn.00401fd3
pop ecx
cmp dword [ebp - 8], ebx
je 0x40180a
push dword [ebp - 8]
call fcn.00401fd3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10