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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6e89
mov eax, dword fs:[0]
push eax
mov eax, 0x4148
call fcn.004ba9f0
mov eax, dword [0x53f1e4]
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], 0x4628c0
mov dword [ebp - 0x40a8], 0x4628e0
mov dword [ebp - 0x40e0], 0x462900
mov dword [ebp - 0x40dc], 0x462920
mov dword [ebp - 0x413c], eax
mov dword [ebp - 0x4144], ebx
mov dword [ebp - 0x4140], ebx
mov dword [ebp - 0x4154], 0x463660
mov dword [ebp - 0x4150], 0x4636b0
mov dword [ebp - 0x40a4], 0x4647e0
mov dword [ebp - 0x40a0], 0x464840
mov dword [ebp - 0x409c], 0x464850
mov dword [ebp - 0x4098], 0x4648b0
mov dword [ebp - 0x4094], edx
mov dword [ebp - 0x408c], ebx
mov dword [ebp - 0x4090], ebx
call fcn.004649d0
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.00466eb0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x463862
lea edi, [ebp - 0x40ac]
lea eax, [ebp - 0x4134]
call fcn.00464e40
mov dword [ebp - 0x40b0], esi
cmp esi, ebx
je 0x463896
lea edi, [ebp - 0x40ac]
lea eax, [ebp - 0x4134]
call fcn.00464e40
mov ecx, dword [ebp - 0x40b4]
push 8
push 0x510ea0
call fcn.00404960
xor al, al
jmp 0x4640d5
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 0x46401e
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 0x463927
mov ecx, edi
mov dword [ebp - 0x40b8], ecx
fild dword [ebp - 0x40b8]
test ecx, ecx
jns 0x4638f4
fadd dword [0x510ef0]
mov edx, dword [ebp - 0x4118]
fild dword [ebp - 0x4118]
test edx, edx
jns 0x46390a
fadd dword [0x510ef0]
fdivp st(1)
fmul qword [0x510ee8]
call fcn.004bab70
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 0x463d08
lea esi, [eax + eax + 2]
cmp esi, ebx
je 0x463d29
push esi
call fcn.004b30cc
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x463d29
push esi
push ebx
push edi
call fcn.004b9c60
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 0x46399d
mov eax, edi
sub edx, edi
jmp 0x463990
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x463990
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 0x4639b2
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x4c]
call fcn.00404960
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp - 0x3c], ebx
jbe 0x463a0e
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
jmp 0x4639e0
mov edx, ecx
cmp esi, 8
jae 0x4639ea
lea edx, [ebp - 0x4c]
cmp word [edx + eax*2], 0x2f
jne 0x463a08
cmp esi, 8
jae 0x4639f9
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 0x4639e0
push edi
call fcn.004b3515
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 0x463a32
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00404960
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x463d4a
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x463a69
lea ecx, [ebp - 0x30]
cmp word [ecx + eax*2], 0x5c
je 0x463a7f
push 1
mov eax, 0x5062dc
lea ecx, [ebp - 0x30]
call fcn.00403f00
push ebx
lea ecx, [ebp - 0x4c]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x30]
call fcn.00403e00
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.004672a0
add esp, 0x24
mov dword [ebp - 0x40b0], eax
cmp eax, ebx
jne 0x463d54
mov edx, dword [ebp - 0x40c4]
cmp byte [edx - 4], 0
je 0x463b7d
mov eax, dword [ebp - 0x30]
mov edi, 8
cmp dword [ebp - 0x1c], edi
jae 0x463b11
mov eax, esi
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x463db6
cmp eax, 0xce
je 0x463db6
cmp eax, 3
je 0x463db6
cmp dword [ebp - 0x1c], edi
jb 0x463b4a
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b1c22
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 0x463b73
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b1c22
add esp, 4
mov dword [ebp - 0x3c], ebx
xor eax, eax
jmp 0x463cda
lea ecx, [ebp - 0x30]
push ecx
lea edi, [ebp - 0x40b8]
mov dword [ebp - 0x40b8], 0x5c
call fcn.00406990
cmp eax, 0xffffffff
je 0x463bd5
push eax
push ebx
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x30]
call fcn.00403cb0
mov eax, dword [ebp - 0x68]
mov esi, 8
cmp dword [ebp - 0x54], esi
jae 0x463bb9
lea eax, [ebp - 0x68]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x54], esi
jb 0x463bda
mov eax, dword [ebp - 0x68]
push eax
call fcn.004b1c22
add esp, 4
jmp 0x463bda
mov esi, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x463be5
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 0x463c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x463e85
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.00464380
add esp, 4
test eax, eax
jne 0x463f2b
cmp dword [ebp - 0x40c0], ebx
jne 0x463f2b
cmp esi, 0xffffffff
je 0x463c71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x463c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40c4]
cmp byte [ecx], 0
mov ebx, 8
je 0x463c97
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x463c8c
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 0x463ca8
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b1c22
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 0x463cd3
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b1c22
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 0x46401e
mov edi, eax
jmp 0x4638d0
mov ecx, dword [ebp - 0x40b4]
push 0x19
push str.SzArEx_GetFileNameUtf16
mov dword [ebp - 0x40b0], 8
call fcn.00404960
jmp 0x46401e
mov ecx, dword [ebp - 0x40b4]
push 9
push str.SzAlloc
mov dword [ebp - 0x40b0], 2
call fcn.00404960
jmp 0x46401e
push str.invalid_string_position
call fcn.0046b74f
mov ecx, dword [ebp - 0x40b4]
push 0x10
push str.SzArEx_Extract
call fcn.00404960
mov edi, 8
cmp dword [ebp - 0x1c], edi
jb 0x463d7c
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004b1c22
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 0x463da5
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004b1c22
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
jmp 0x46401e
push str.can_not_create_output_folder_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x84]
push 0x510e0c
push edx
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040add0
push eax
mov eax, 0x510d30
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004039a0
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00404350
mov ebx, 8
cmp dword [ebp - 0x54], ebx
jb 0x463e1b
mov eax, dword [ebp - 0x68]
push eax
call fcn.004b1c22
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 0x463e42
mov edx, dword [ebp - 0x84]
push edx
call fcn.004b1c22
add esp, 4
cmp dword [ebp - 0x1c], ebx
jb 0x463e53
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b1c22
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 0x463e77
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b1c22
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], edi
mov word [ebp - 0x4c], ax
jmp 0x464019
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 0x463e9e
lea eax, [ebp - 0x30]
push eax
call esi
lea ecx, [ebp - 0x84]
push 0x510e1c
push ecx
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040add0
push eax
mov eax, 0x510d30
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.004039a0
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00404350
mov edi, 8
cmp dword [ebp - 0x54], edi
jb 0x463efb
mov edx, dword [ebp - 0x68]
push edx
call fcn.004b1c22
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 0x463fdb
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.004b1c22
add esp, 4
jmp 0x463fdb
push str.can_not_write_output_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x463f4c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x463f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x84]
push 0x510e94
push eax
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x40b0], 9
call fcn.0040add0
push eax
mov eax, 0x510d30
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.004039a0
add esp, 0xc
mov esi, dword [ebp - 0x40b4]
mov ebx, 7
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00404350
mov edi, 8
cmp dword [ebp - 0x54], edi
jb 0x463faa
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004b1c22
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 0x463fcc
mov eax, dword [ebp - 0x84]
push eax
call fcn.004b1c22
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 0x463fec
mov edx, dword [ebp - 0x30]
push edx
call fcn.004b1c22
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 0x464010
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b1c22
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.00464d80
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.004b1c2d
mov esp, ebp
pop ebp
ret