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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0ce9
mov eax, dword fs:[0]
push eax
mov eax, 0x4148
call fcn.004c43c0
mov eax, dword [0x54c1b4]
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], 0x46c030
mov dword [ebp - 0x40a8], 0x46c050
mov dword [ebp - 0x40e0], 0x46c070
mov dword [ebp - 0x40dc], 0x46c090
mov dword [ebp - 0x413c], eax
mov dword [ebp - 0x4144], ebx
mov dword [ebp - 0x4140], ebx
mov dword [ebp - 0x4154], 0x46cdd0
mov dword [ebp - 0x4150], 0x46ce20
mov dword [ebp - 0x40a4], 0x46df50
mov dword [ebp - 0x40a0], 0x46dfb0
mov dword [ebp - 0x409c], 0x46dfc0
mov dword [ebp - 0x4098], 0x46e020
mov dword [ebp - 0x4094], edx
mov dword [ebp - 0x408c], ebx
mov dword [ebp - 0x4090], ebx
call fcn.0046e140
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.00470620
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x46cfd2
lea edi, [ebp - 0x40ac]
lea eax, [ebp - 0x4134]
call fcn.0046e5b0
mov dword [ebp - 0x40b0], esi
cmp esi, ebx
je 0x46d006
lea edi, [ebp - 0x40ac]
lea eax, [ebp - 0x4134]
call fcn.0046e5b0
mov ecx, dword [ebp - 0x40b4]
push 8
push 0x51d0d8
call fcn.00408810
xor al, al
jmp 0x46d845
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 0x46d78e
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 0x46d097
mov ecx, edi
mov dword [ebp - 0x40b8], ecx
fild dword [ebp - 0x40b8]
test ecx, ecx
jns 0x46d064
fadd dword [0x51d128]
mov edx, dword [ebp - 0x4118]
fild dword [ebp - 0x4118]
test edx, edx
jns 0x46d07a
fadd dword [0x51d128]
fdivp st(1)
fmul qword [0x51d120]
call fcn.004c4540
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 0x46d478
lea esi, [eax + eax + 2]
cmp esi, ebx
je 0x46d499
push esi
call fcn.004bc710
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x46d499
push esi
push ebx
push edi
call fcn.004c3610
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 0x46d10d
mov eax, edi
sub edx, edi
jmp 0x46d100
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x46d100
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 0x46d122
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x4c]
call fcn.00408810
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp - 0x3c], ebx
jbe 0x46d17e
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
jmp 0x46d150
mov edx, ecx
cmp esi, 8
jae 0x46d15a
lea edx, [ebp - 0x4c]
cmp word [edx + eax*2], 0x2f
jne 0x46d178
cmp esi, 8
jae 0x46d169
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 0x46d150
push edi
call fcn.004bcb59
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 0x46d1a2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00408810
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x46d4ba
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x46d1d9
lea ecx, [ebp - 0x30]
cmp word [ecx + eax*2], 0x5c
je 0x46d1ef
push 1
mov eax, 0x5118c0
lea ecx, [ebp - 0x30]
call fcn.00407820
push ebx
lea ecx, [ebp - 0x4c]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x30]
call fcn.00407720
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.00470a10
add esp, 0x24
mov dword [ebp - 0x40b0], eax
cmp eax, ebx
jne 0x46d4c4
mov edx, dword [ebp - 0x40c4]
cmp byte [edx - 4], 0
je 0x46d2ed
mov eax, dword [ebp - 0x30]
mov edi, 8
cmp dword [ebp - 0x1c], edi
jae 0x46d281
mov eax, esi
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x46d526
cmp eax, 0xce
je 0x46d526
cmp eax, 3
je 0x46d526
cmp dword [ebp - 0x1c], edi
jb 0x46d2ba
mov eax, dword [ebp - 0x30]
push eax
call fcn.004bb4d8
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 0x46d2e3
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004bb4d8
add esp, 4
mov dword [ebp - 0x3c], ebx
xor eax, eax
jmp 0x46d44a
lea ecx, [ebp - 0x30]
push ecx
lea edi, [ebp - 0x40b8]
mov dword [ebp - 0x40b8], 0x5c
call fcn.00404ea0
cmp eax, 0xffffffff
je 0x46d345
push eax
push ebx
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x30]
call fcn.00407470
mov eax, dword [ebp - 0x68]
mov esi, 8
cmp dword [ebp - 0x54], esi
jae 0x46d329
lea eax, [ebp - 0x68]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x54], esi
jb 0x46d34a
mov eax, dword [ebp - 0x68]
push eax
call fcn.004bb4d8
add esp, 4
jmp 0x46d34a
mov esi, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x46d355
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 0x46d387
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x46d5f5
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.0046daf0
add esp, 4
test eax, eax
jne 0x46d69b
cmp dword [ebp - 0x40c0], ebx
jne 0x46d69b
cmp esi, 0xffffffff
je 0x46d3e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46d3e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40c4]
cmp byte [ecx], 0
mov ebx, 8
je 0x46d407
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x46d3fc
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 0x46d418
mov eax, dword [ebp - 0x30]
push eax
call fcn.004bb4d8
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 0x46d443
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004bb4d8
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 0x46d78e
mov edi, eax
jmp 0x46d040
mov ecx, dword [ebp - 0x40b4]
push 0x19
push str.SzArEx_GetFileNameUtf16
mov dword [ebp - 0x40b0], 8
call fcn.00408810
jmp 0x46d78e
mov ecx, dword [ebp - 0x40b4]
push 9
push str.SzAlloc
mov dword [ebp - 0x40b0], 2
call fcn.00408810
jmp 0x46d78e
push str.invalid_string_position
call fcn.00474e77
mov ecx, dword [ebp - 0x40b4]
push 0x10
push str.SzArEx_Extract
call fcn.00408810
mov edi, 8
cmp dword [ebp - 0x1c], edi
jb 0x46d4ec
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004bb4d8
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 0x46d515
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
jmp 0x46d78e
push str.can_not_create_output_folder_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x84]
push 0x51d044
push edx
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040ac00
push eax
mov eax, 0x51cf68
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004070c0
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00407a10
mov ebx, 8
cmp dword [ebp - 0x54], ebx
jb 0x46d58b
mov eax, dword [ebp - 0x68]
push eax
call fcn.004bb4d8
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 0x46d5b2
mov edx, dword [ebp - 0x84]
push edx
call fcn.004bb4d8
add esp, 4
cmp dword [ebp - 0x1c], ebx
jb 0x46d5c3
mov eax, dword [ebp - 0x30]
push eax
call fcn.004bb4d8
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 0x46d5e7
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], edi
mov word [ebp - 0x4c], ax
jmp 0x46d789
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 0x46d60e
lea eax, [ebp - 0x30]
push eax
call esi
lea ecx, [ebp - 0x84]
push 0x51d054
push ecx
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040ac00
push eax
mov eax, 0x51cf68
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.004070c0
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00407a10
mov edi, 8
cmp dword [ebp - 0x54], edi
jb 0x46d66b
mov edx, dword [ebp - 0x68]
push edx
call fcn.004bb4d8
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 0x46d74b
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.004bb4d8
add esp, 4
jmp 0x46d74b
push str.can_not_write_output_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x46d6bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46d6bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x84]
push 0x51d0cc
push eax
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040ac00
push eax
mov eax, 0x51cf68
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.004070c0
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov ebx, 7
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00407a10
mov edi, 8
cmp dword [ebp - 0x54], edi
jb 0x46d71a
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004bb4d8
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 0x46d73c
mov eax, dword [ebp - 0x84]
push eax
call fcn.004bb4d8
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 0x46d75c
mov edx, dword [ebp - 0x30]
push edx
call fcn.004bb4d8
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 0x46d780
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004bb4d8
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.0046e4f0
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.004bb4e3
mov esp, ebp
pop ebp
ret