Function at 0x10005260
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4944
call fcn.100974c0
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x4940], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], eax
xor eax, eax
push 0x61a
push eax
mov word [esp + 0x4330], ax
lea eax, [esp + 0x4332]
push eax
xor edi, edi
call sub.MSVCR110.dll_memset
mov ebx, esi
add esp, 0xc
lea ecx, [ebx + 2]
lea esp, [esp]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x100052c0
push esi
lea eax, [esp + 0x432c]
sub ebx, ecx
push 0x30e
push eax
sar ebx, 1
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
cmp word [esi + ebx*2 - 2], 0x5c
je 0x10005322
push 0x100a21f4
lea eax, [esp + 0x432c]
push 0x30e
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
lea ebx, [esp + 0x4334]
add esp, 0xc
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10005313
sub ebx, ecx
sar ebx, 1
call fcn.10001090
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [esp + 0x30]
mov dword [esp + 0xac], 0x10001000
mov dword [esp + 0xb0], 0x10001020
mov dword [esp + 0xb4], 0x10001000
mov dword [esp + 0xb8], 0x10001020
mov dword [esp + 0x40e0], 0x10002000
mov dword [esp + 0x40e4], 0x10002020
mov dword [esp + 0xbc], 0x10005f00
mov dword [esp + 0xc0], 0x10005f60
mov dword [esp + 0xc4], 0x10005f70
mov dword [esp + 0xc8], 0x10005fc0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x40cc], eax
cmp eax, 0xffffffff
jne 0x100053da
call esi
test eax, eax
je 0x100053da
mov eax, dword [esp + 0x10]
mov edi, 0xb
mov dword [eax], 0x100a21f8
jmp 0x1000543d
xorps xmm0, xmm0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x40cc]
movlpd qword [esp + 0x30], xmm0
call fcn.100049c0
test eax, eax
je 0x10005410
push 0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x40d0]
call fcn.10001f50
add esp, 4
test eax, eax
je 0x10005421
mov eax, dword [esp + 0x10]
mov edi, 0xb
mov dword [eax], str.Cant_find_7z_archive
jmp 0x1000543d
lea eax, [esp + 0x40c4]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], edi
lea ecx, [esp + 0x40]
call fcn.100022b0
test edi, edi
jne 0x10005768
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0xa8]
call fcn.100041e0
mov edi, eax
add esp, 8
test edi, edi
je 0x1000548b
lea edx, [esp + 0x90]
lea ecx, [esp + 0x40]
call fcn.10002320
test edi, edi
jne 0x10005768
xor edx, edx
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], edx
cmp dword [esp + 0x5c], edx
jbe 0x10005752
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea esp, [esp]
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax + edx*4]
mov edx, dword [eax + edx*4 + 4]
sub edx, ecx
mov dword [esp + 0xc], 0
cmp edx, 0x104
jae 0x1000574d
lea esi, [esp + 0x4328]
lea esi, [esi + ebx*2]
test esi, esi
je 0x10005537
mov eax, dword [esp + 0x84]
lea esi, [eax + ecx*2]
test edx, edx
je 0x1000552d
lea eax, [esp + 0x4328]
lea eax, [eax + ebx*2]
mov ecx, eax
sub esi, eax
mov ax, word [esi + ecx]
mov word [ecx], ax
lea ecx, [ecx + 2]
dec edx
jne 0x10005520
lea esi, [esp + 0x4328]
lea esi, [esi + ebx*2]
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x3c]
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x60]
call fcn.10004580
mov edi, eax
add esp, 0x20
mov dword [esp + 0x14], edi
test edi, edi
jne 0x1000585b
cmp word [esi], di
je 0x100055d5
lea eax, [esp + 0x4328]
lea eax, [eax + ebx*2]
cmp word [esi], 0x2f
jne 0x100055ca
xor eax, eax
push eax
mov word [esi], ax
lea eax, [esp + 0x432c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100055b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
lea eax, [esp + 0x4328]
lea eax, [eax + ebx*2]
inc edi
cmp word [eax + edi*2], 0
lea esi, [eax + edi*2]
jne 0x10005594
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x19], 0
je 0x10005622
push 0
lea eax, [esp + 0x432c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100055fb
call esi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc edx
add ecx, 0x20
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
cmp edx, dword [esp + 0x5c]
jb 0x100054c0
jmp 0x10005752
lea eax, [esp + 0x40d8]
push eax
lea eax, [esp + 0x432c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x10005846
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x4340]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0x1000567a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x10005743
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
lea edx, [edx + ecx]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], esi
call fcn.10001eb0
add esp, 4
test eax, eax
jne 0x100056a8
cmp dword [esp + 0xc], esi
je 0x100056b9
mov eax, dword [esp + 0x10]
mov edi, 0xb
mov dword [eax], str.Cant_write_output_file
jmp 0x100056bd
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
cmp byte [ecx + 0x1c], 0
je 0x100056f1
mov eax, dword [ecx]
mov dword [esp + 0x40d0], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x40d4], eax
lea eax, [esp + 0x40d0]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 0xffffffff
je 0x1000570b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000570b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x10005713
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
test edi, edi
jne 0x10005752
test eax, eax
jne 0x1000583f
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x1d], 0
je 0x100055ff
push dword [eax + 0x14]
lea eax, [esp + 0x432c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x100055ff
mov eax, dword [esp + 0x10]
mov dword [eax], str.Cant_open_output_file
mov edi, 0xb
push dword [esp + 0x1c]
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x9c]
add esp, 8
push dword [esp + 0x70]
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x9c]
push dword [esp + 0x7c]
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0xa4]
push dword [esp + 0x88]
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0xac]
push dword [esp + 0x94]
lea eax, [esp + 0xac]
push eax
call dword [esp + 0xb4]
push dword [esp + 0xa0]
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0xbc]
push dword [esp + 0xac]
lea eax, [esp + 0xbc]
push eax
call dword [esp + 0xc4]
add esp, 0x30
lea edx, [esp + 0x90]
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.10002200
mov eax, dword [esp + 0x40cc]
cmp eax, 0xffffffff
je 0x10005828
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10005828
call esi
mov ecx, dword [esp + 0x494c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
mov edi, eax
jmp 0x10005752
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [eax], str.Duplicate_file
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10005752