Function at 0x46bd20
Capabilities:
Create directory
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efbb9
mov eax, dword fs:[0]
push eax
mov eax, 0x4148
call fcn.004c3290
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x414c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40d0], edx
cdq
xor ebx, ebx
mov dword [ebp - 0x40e4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x4138], edx
lea edx, [ebp - 0x4154]
mov dword [ebp - 0x40b4], ecx
mov dword [ebp - 0x40ac], 0x46af00
mov dword [ebp - 0x40a8], 0x46af20
mov dword [ebp - 0x40e0], 0x46af40
mov dword [ebp - 0x40dc], 0x46af60
mov dword [ebp - 0x413c], eax
mov dword [ebp - 0x4144], ebx
mov dword [ebp - 0x4140], ebx
mov dword [ebp - 0x4154], 0x46bca0
mov dword [ebp - 0x4150], 0x46bcf0
mov dword [ebp - 0x40a4], 0x46ce20
mov dword [ebp - 0x40a0], 0x46ce80
mov dword [ebp - 0x409c], 0x46ce90
mov dword [ebp - 0x4098], 0x46cef0
mov dword [ebp - 0x4094], edx
mov dword [ebp - 0x408c], ebx
mov dword [ebp - 0x4090], ebx
call fcn.0046d010
lea eax, [ebp - 0x40a4]
push eax
lea ecx, [ebp - 0x4134]
push ecx
lea edx, [ebp - 0x40e0]
lea ecx, [ebp - 0x40ac]
mov dword [ebp - 0x4134], ebx
mov dword [ebp - 0x4130], ebx
mov dword [ebp - 0x412c], ebx
mov dword [ebp - 0x4128], ebx
mov dword [ebp - 0x4124], ebx
mov dword [ebp - 0x4120], ebx
mov dword [ebp - 0x411c], ebx
mov dword [ebp - 0x4118], ebx
mov dword [ebp - 0x4104], ebx
mov dword [ebp - 0x4100], ebx
mov dword [ebp - 0x40fc], ebx
mov dword [ebp - 0x40f8], ebx
mov dword [ebp - 0x40f4], ebx
mov dword [ebp - 0x40f0], ebx
mov dword [ebp - 0x40ec], ebx
call fcn.0046f4f0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x46bea2
lea edi, [ebp - 0x40ac]
lea eax, [ebp - 0x4134]
call fcn.0046d480
mov dword [ebp - 0x40b0], esi
cmp esi, ebx
je 0x46bed6
lea edi, [ebp - 0x40ac]
lea eax, [ebp - 0x4134]
call fcn.0046d480
mov ecx, dword [ebp - 0x40b4]
push 8
push 0x51be18
call fcn.00408440
xor al, al
jmp 0x46c715
xor edi, edi
mov dword [ebp - 0x40d4], 0xffffffff
mov dword [ebp - 0x40c8], ebx
mov dword [ebp - 0x40d8], ebx
mov dword [ebp - 0x40bc], edi
cmp dword [ebp - 0x4118], ebx
jbe 0x46c65e
mov edx, dword [ebp - 0x4124]
add edx, 0x1d
mov dword [ebp - 0x40c4], edx
nop
mov eax, dword [ebp - 0x40d0]
mov esi, dword [eax]
cmp esi, ebx
je 0x46bf67
mov ecx, edi
mov dword [ebp - 0x40b8], ecx
fild dword [ebp - 0x40b8]
test ecx, ecx
jns 0x46bf34
fadd dword [0x51be68]
mov edx, dword [ebp - 0x4118]
fild dword [ebp - 0x4118]
test edx, edx
jns 0x46bf4a
fadd dword [0x51be68]
fdivp st(1)
fmul qword [0x51be60]
call fcn.004c3410
mov ecx, dword [ebp - 0x40d0]
mov edx, dword [ecx + 4]
push edx
push eax
call esi
add esp, 8
mov ecx, dword [ebp - 0x40f4]
mov eax, dword [ecx + edi*4 + 4]
sub eax, dword [ecx + edi*4]
je 0x46c348
lea esi, [eax + eax + 2]
cmp esi, ebx
je 0x46c369
push esi
call fcn.004bb5e0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x46c369
push esi
push ebx
push edi
call fcn.004c24e0
mov edx, dword [ebp - 0x40f4]
mov ecx, dword [ebp - 0x40bc]
mov eax, dword [edx + ecx*4]
mov ecx, dword [edx + ecx*4 + 4]
mov edx, dword [ebp - 0x40f0]
add esp, 0xc
sub ecx, eax
lea edx, [edx + eax*2]
je 0x46bfdd
mov eax, edi
sub edx, edi
jmp 0x46bfd0
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x46bfd0
xor eax, eax
mov word [ebp - 0x4c], ax
mov eax, edi
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46bff2
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x4c]
call fcn.00408440
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp - 0x3c], ebx
jbe 0x46c04e
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
jmp 0x46c020
mov edx, ecx
cmp esi, 8
jae 0x46c02a
lea edx, [ebp - 0x4c]
cmp word [edx + eax*2], 0x2f
jne 0x46c048
cmp esi, 8
jae 0x46c039
lea ecx, [ebp - 0x4c]
mov edx, 0x5c
mov word [ecx + eax*2], dx
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
inc eax
cmp eax, dword [ebp - 0x3c]
jb 0x46c020
push edi
call fcn.004bba29
mov esi, dword [ebp - 0x40e4]
add esp, 4
xor eax, eax
mov word [ebp - 0x30], ax
mov eax, esi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46c072
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00408440
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x46c38a
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x46c0a9
lea ecx, [ebp - 0x30]
cmp word [ecx + eax*2], 0x5c
je 0x46c0bf
push 1
mov eax, 0x510884
lea ecx, [ebp - 0x30]
call fcn.00407450
push ebx
lea ecx, [ebp - 0x4c]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x30]
call fcn.00407350
lea edx, [ebp - 0x40e0]
push edx
lea eax, [ebp - 0x40ac]
push eax
lea ecx, [ebp - 0x40c0]
push ecx
lea edx, [ebp - 0x40cc]
push edx
lea eax, [ebp - 0x40d8]
push eax
mov eax, dword [ebp - 0x40bc]
lea ecx, [ebp - 0x40c8]
push ecx
lea edx, [ebp - 0x40d4]
push edx
push eax
lea ecx, [ebp - 0x40a4]
push ecx
lea eax, [ebp - 0x4134]
mov dword [ebp - 0x40cc], ebx
mov dword [ebp - 0x40c0], ebx
call fcn.0046f8e0
add esp, 0x24
mov dword [ebp - 0x40b0], eax
cmp eax, ebx
jne 0x46c394
mov edx, dword [ebp - 0x40c4]
cmp byte [edx - 4], 0
je 0x46c1bd
mov eax, dword [ebp - 0x30]
mov edi, 8
cmp dword [ebp - 0x1c], edi
jae 0x46c151
mov eax, esi
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x46c3f6
cmp eax, 0xce
je 0x46c3f6
cmp eax, 3
je 0x46c3f6
cmp dword [ebp - 0x1c], edi
jb 0x46c18a
mov eax, dword [ebp - 0x30]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], edi
jb 0x46c1b3
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004ba3a4
add esp, 4
mov dword [ebp - 0x3c], ebx
xor eax, eax
jmp 0x46c31a
lea ecx, [ebp - 0x30]
push ecx
lea edi, [ebp - 0x40b8]
mov dword [ebp - 0x40b8], 0x5c
call fcn.00404dd0
cmp eax, 0xffffffff
je 0x46c215
push eax
push ebx
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x30]
call fcn.004070a0
mov eax, dword [ebp - 0x68]
mov esi, 8
cmp dword [ebp - 0x54], esi
jae 0x46c1f9
lea eax, [ebp - 0x68]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x54], esi
jb 0x46c21a
mov eax, dword [ebp - 0x68]
push eax
call fcn.004ba3a4
add esp, 4
jmp 0x46c21a
mov esi, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x46c225
lea eax, [ebp - 0x30]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40b8], esi
cmp esi, 0xffffffff
jne 0x46c257
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x46c4c5
mov edx, dword [ebp - 0x40c8]
mov ebx, dword [ebp - 0x40c0]
mov eax, dword [ebp - 0x40cc]
lea ecx, [ebp - 0x40b8]
lea eax, [eax + edx]
push ecx
lea edi, [ebp - 0x40c0]
mov dword [ebp - 0x40c0], ebx
call fcn.0046c9c0
add esp, 4
test eax, eax
jne 0x46c56b
cmp dword [ebp - 0x40c0], ebx
jne 0x46c56b
cmp esi, 0xffffffff
je 0x46c2b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46c2b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40c4]
cmp byte [ecx], 0
mov ebx, 8
je 0x46c2d7
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x46c2cc
lea eax, [ebp - 0x30]
mov edx, dword [ecx - 9]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x1c], ebx
jb 0x46c2e8
mov eax, dword [ebp - 0x30]
push eax
call fcn.004ba3a4
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], ebx
jb 0x46c313
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004ba3a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x3c], edi
xor ebx, ebx
add dword [ebp - 0x40c4], 0x20
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x40bc]
inc eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40bc], eax
cmp eax, dword [ebp - 0x4118]
jae 0x46c65e
mov edi, eax
jmp 0x46bf10
mov ecx, dword [ebp - 0x40b4]
push 0x19
push str.SzArEx_GetFileNameUtf16
mov dword [ebp - 0x40b0], 8
call fcn.00408440
jmp 0x46c65e
mov ecx, dword [ebp - 0x40b4]
push 9
push str.SzAlloc
mov dword [ebp - 0x40b0], 2
call fcn.00408440
jmp 0x46c65e
push str.invalid_string_position
call fcn.00473d47
mov ecx, dword [ebp - 0x40b4]
push 0x10
push str.SzArEx_Extract
call fcn.00408440
mov edi, 8
cmp dword [ebp - 0x1c], edi
jb 0x46c3bc
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004ba3a4
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x38], edi
jb 0x46c3e5
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
jmp 0x46c65e
push str.can_not_create_output_folder_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x84]
push 0x51bd84
push edx
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040a830
push eax
mov eax, 0x51bca8
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00406d60
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00407640
mov ebx, 8
cmp dword [ebp - 0x54], ebx
jb 0x46c45b
mov eax, dword [ebp - 0x68]
push eax
call fcn.004ba3a4
add esp, 4
xor esi, esi
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x70], ebx
jb 0x46c482
mov edx, dword [ebp - 0x84]
push edx
call fcn.004ba3a4
add esp, 4
cmp dword [ebp - 0x1c], ebx
jb 0x46c493
mov eax, dword [ebp - 0x30]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], ebx
jb 0x46c4b7
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004ba3a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], edi
mov word [ebp - 0x4c], ax
jmp 0x46c659
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.can_not_open_output_file_n
call esi
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x46c4de
lea eax, [ebp - 0x30]
push eax
call esi
lea ecx, [ebp - 0x84]
push 0x51bd94
push ecx
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040a830
push eax
mov eax, 0x51bca8
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00406d60
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00407640
mov edi, 8
cmp dword [ebp - 0x54], edi
jb 0x46c53b
mov edx, dword [ebp - 0x68]
push edx
call fcn.004ba3a4
add esp, 4
xor esi, esi
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], ax
cmp dword [ebp - 0x70], edi
jb 0x46c61b
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.004ba3a4
add esp, 4
jmp 0x46c61b
push str.can_not_write_output_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x46c58c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46c58c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x84]
push 0x51be0c
push eax
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040a830
push eax
mov eax, 0x51bca8
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00406d60
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov ebx, 7
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00407640
mov edi, 8
cmp dword [ebp - 0x54], edi
jb 0x46c5ea
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004ba3a4
add esp, 4
xor esi, esi
xor edx, edx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], dx
cmp dword [ebp - 0x70], edi
jb 0x46c60c
mov eax, dword [ebp - 0x84]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], esi
mov word [ebp - 0x84], cx
cmp dword [ebp - 0x1c], edi
jb 0x46c62c
mov edx, dword [ebp - 0x30]
push edx
call fcn.004ba3a4
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x38], edi
jb 0x46c650
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004ba3a4
add esp, 4
xor edx, edx
mov word [ebp - 0x4c], dx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esi
xor ebx, ebx
mov eax, dword [ebp - 0x40c8]
push eax
lea ecx, [ebp - 0x40ac]
push ecx
call dword [ebp - 0x40a8]
mov edx, dword [ebp - 0x4104]
push edx
lea eax, [ebp - 0x40ac]
push eax
call dword [ebp - 0x40a8]
mov ecx, dword [ebp - 0x4100]
push ecx
lea edx, [ebp - 0x40ac]
push edx
call dword [ebp - 0x40a8]
mov eax, dword [ebp - 0x40fc]
push eax
lea ecx, [ebp - 0x40ac]
push ecx
call dword [ebp - 0x40a8]
mov edx, dword [ebp - 0x40f8]
push edx
lea eax, [ebp - 0x40ac]
push eax
call dword [ebp - 0x40a8]
mov ecx, dword [ebp - 0x40f4]
push ecx
lea edx, [ebp - 0x40ac]
push edx
call dword [ebp - 0x40a8]
mov eax, dword [ebp - 0x40f0]
push eax
lea ecx, [ebp - 0x40ac]
push ecx
call dword [ebp - 0x40a8]
add esp, 0x38
lea eax, [ebp - 0x40ac]
lea esi, [ebp - 0x4134]
mov dword [ebp - 0x40f0], ebx
mov dword [ebp - 0x40ec], ebx
call fcn.0046d3c0
xor eax, eax
cmp dword [ebp - 0x40b0], ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret