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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d830
mov eax, dword fs:[0]
push eax
mov eax, 0x4124
call fcn.00416560
mov eax, dword [0x424084]
xor eax, ebp
mov dword [ebp - 0x10], 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 - 0x4128], eax
mov eax, dword [ebp + 0xc]
cdq
xor ebx, ebx
mov dword [ebp - 0x4114], edx
lea edx, [ebp - 0x4130]
mov dword [ebp - 0x40b0], ecx
mov dword [ebp - 0x4090], 0x406b00
mov dword [ebp - 0x408c], 0x406ae0
mov dword [ebp - 0x40c0], 0x406b00
mov dword [ebp - 0x40bc], 0x406ae0
mov dword [ebp - 0x4118], eax
mov dword [ebp - 0x4120], ebx
mov dword [ebp - 0x411c], ebx
mov dword [ebp - 0x4130], 0x406be0
mov dword [ebp - 0x412c], 0x406c30
mov dword [ebp - 0x4088], 0x407660
mov dword [ebp - 0x4084], 0x4076c0
mov dword [ebp - 0x4080], 0x4076d0
mov dword [ebp - 0x407c], 0x407730
mov dword [ebp - 0x4078], edx
mov dword [ebp - 0x4070], ebx
mov dword [ebp - 0x4074], ebx
call fcn.00407760
lea eax, [ebp - 0x4088]
push eax
lea ecx, [ebp - 0x4110]
push ecx
lea edx, [ebp - 0x40c0]
lea ecx, [ebp - 0x4090]
mov dword [ebp - 0x4110], ebx
mov dword [ebp - 0x410c], ebx
mov dword [ebp - 0x4108], 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 - 0x40e0], ebx
mov dword [ebp - 0x40dc], ebx
mov dword [ebp - 0x40d8], ebx
mov dword [ebp - 0x40d4], ebx
mov dword [ebp - 0x40d0], ebx
mov dword [ebp - 0x40cc], ebx
mov dword [ebp - 0x40c8], ebx
call fcn.00409a40
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x406dc3
lea edi, [ebp - 0x4090]
lea eax, [ebp - 0x4110]
call fcn.00407a30
mov edi, esi
cmp esi, ebx
je 0x406de1
lea edi, [ebp - 0x4090]
lea eax, [ebp - 0x4110]
call fcn.00407a30
xor al, al
jmp 0x40746f
mov edx, dword [ebp - 0x40d0]
xor ecx, ecx
mov dword [ebp - 0x40b4], 0xffffffff
mov dword [ebp - 0x40a8], ebx
mov dword [ebp - 0x40b8], ebx
mov dword [ebp - 0x4098], ecx
cmp dword [ebp - 0x40f4], ebx
jbe 0x4073bc
mov eax, dword [ebp - 0x4100]
add eax, 0x1d
mov dword [ebp - 0x409c], eax
mov eax, dword [edx + ecx*4 + 4]
sub eax, dword [edx + ecx*4]
je 0x407214
lea esi, [eax + eax + 2]
cmp esi, ebx
je 0x40721e
push esi
call fcn.0040f458
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40721e
push esi
push ebx
push edi
call fcn.00415410
mov edx, dword [ebp - 0x40d0]
mov ecx, dword [ebp - 0x4098]
mov eax, dword [edx + ecx*4]
mov ecx, dword [edx + ecx*4 + 4]
mov edx, dword [ebp - 0x40cc]
add esp, 0xc
sub ecx, eax
lea edx, [edx + eax*2]
je 0x406e8d
mov eax, edi
sub edx, edi
jmp 0x406e80
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x406e80
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, edi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406ea2
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x48]
call fcn.00401890
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp - 0x38], ebx
jbe 0x406efe
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
lea esp, [esp]
mov edx, ecx
cmp esi, 8
jae 0x406eda
lea edx, [ebp - 0x48]
cmp word [edx + eax*2], 0x2f
jne 0x406ef8
cmp esi, 8
jae 0x406ee9
lea ecx, [ebp - 0x48]
mov edx, 0x5c
mov word [ecx + eax*2], dx
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
inc eax
cmp eax, dword [ebp - 0x38]
jb 0x406ed0
push edi
call fcn.0040f4ec
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x40b0]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406f20
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x40b0]
lea esi, [ebp - 0x2c]
call fcn.00401890
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x407228
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x406f5b
mov ecx, esi
cmp word [ecx + eax*2], 0x5c
je 0x406f71
push 1
mov eax, 0x420764
lea ecx, [ebp - 0x2c]
call fcn.00404050
push ebx
lea ecx, [ebp - 0x48]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.004044a0
lea edx, [ebp - 0x40c0]
push edx
lea eax, [ebp - 0x4090]
push eax
lea ecx, [ebp - 0x4094]
push ecx
lea edx, [ebp - 0x40ac]
push edx
lea eax, [ebp - 0x40b8]
push eax
mov eax, dword [ebp - 0x4098]
lea ecx, [ebp - 0x40a8]
push ecx
lea edx, [ebp - 0x40b4]
push edx
push eax
lea ecx, [ebp - 0x4088]
push ecx
lea eax, [ebp - 0x4110]
mov dword [ebp - 0x40ac], ebx
mov dword [ebp - 0x4094], ebx
call fcn.00409e10
mov edi, eax
add esp, 0x24
mov dword [ebp - 0x40a4], edi
cmp edi, ebx
jne 0x407232
mov edx, dword [ebp - 0x409c]
cmp byte [edx - 4], 0
je 0x407073
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x407006
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x407278
cmp eax, 0xce
je 0x407278
cmp eax, 3
je 0x407278
cmp dword [ebp - 0x18], esi
jb 0x40703f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040ecdf
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jb 0x407069
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040ecdf
add esp, 4
mov dword [ebp - 0x38], ebx
xor eax, eax
jmp 0x4071e0
lea ecx, [ebp - 0x2c]
push ecx
lea edi, [ebp - 0x40a0]
mov dword [ebp - 0x40a0], 0x5c
call fcn.004074c0
cmp eax, 0xffffffff
je 0x4070d9
push eax
xor ecx, ecx
lea esi, [ebp - 0x64]
lea edx, [ebp - 0x2c]
call fcn.00407490
mov eax, dword [ebp - 0x64]
mov esi, 8
cmp dword [ebp - 0x50], esi
jae 0x4070af
lea eax, [ebp - 0x64]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x50], esi
jb 0x4070c9
mov edx, dword [ebp - 0x64]
push edx
call fcn.0040ecdf
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4070e5
lea eax, [ebp - 0x2c]
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 - 0x40a0], esi
cmp esi, 0xffffffff
jne 0x407117
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x4072d1
mov edx, dword [ebp - 0x40a8]
mov ebx, dword [ebp - 0x4094]
mov eax, dword [ebp - 0x40ac]
lea ecx, [ebp - 0x40a0]
lea eax, [eax + edx]
push ecx
lea edi, [ebp - 0x4094]
mov dword [ebp - 0x4094], ebx
call fcn.00407560
add esp, 4
test eax, eax
jne 0x40733c
cmp dword [ebp - 0x4094], ebx
jne 0x40733c
cmp esi, 0xffffffff
je 0x407171
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x407171
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x409c]
cmp byte [ecx], 0
mov ebx, 8
je 0x407197
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x40718c
lea eax, [ebp - 0x2c]
mov edx, dword [ecx - 9]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x18], ebx
jb 0x4071a8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040ecdf
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], ebx
jb 0x4071d3
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040ecdf
add esp, 4
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x40a4]
xor eax, eax
xor ebx, ebx
add dword [ebp - 0x409c], 0x20
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x4098]
inc eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x4098], eax
cmp eax, dword [ebp - 0x40f4]
jae 0x4073bc
mov edx, dword [ebp - 0x40d0]
mov ecx, eax
jmp 0x406e20
mov edi, 8
jmp 0x4073bc
mov edi, 2
jmp 0x4073bc
push str.invalid_string_position
call fcn.0040ec57
cmp dword [ebp - 0x18], 8
jb 0x407244
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040ecdf
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
jb 0x40726e
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040ecdf
add esp, 4
mov dword [ebp - 0x38], ebx
xor ecx, ecx
jmp 0x4073b5
push str.can_not_create_output_folder_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 9
cmp dword [ebp - 0x18], esi
jb 0x407299
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040ecdf
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
jb 0x4072c3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0040ecdf
add esp, 4
xor edx, edx
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
jmp 0x4073b9
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.can_not_open_output_file_n
call esi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4072ea
lea eax, [ebp - 0x2c]
push eax
call esi
cmp dword [ebp - 0x18], 8
mov edi, 9
jb 0x407304
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040ecdf
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jb 0x40732e
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040ecdf
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
jmp 0x4073b9
push str.can_not_write_output_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x40735d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40735d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 8
mov dword [ebp - 0x40a4], 9
cmp dword [ebp - 0x18], ebx
jb 0x40737d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040ecdf
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], ebx
jb 0x4073a8
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040ecdf
add esp, 4
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x40a4]
xor ecx, ecx
xor ebx, ebx
mov word [ebp - 0x48], cx
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x40a8]
push edx
lea eax, [ebp - 0x4090]
push eax
call dword [ebp - 0x408c]
mov ecx, dword [ebp - 0x40e0]
push ecx
lea edx, [ebp - 0x4090]
push edx
call dword [ebp - 0x408c]
mov eax, dword [ebp - 0x40dc]
push eax
lea ecx, [ebp - 0x4090]
push ecx
call dword [ebp - 0x408c]
mov edx, dword [ebp - 0x40d8]
push edx
lea eax, [ebp - 0x4090]
push eax
call dword [ebp - 0x408c]
mov ecx, dword [ebp - 0x40d4]
push ecx
lea edx, [ebp - 0x4090]
push edx
call dword [ebp - 0x408c]
mov eax, dword [ebp - 0x40d0]
push eax
lea ecx, [ebp - 0x4090]
push ecx
call dword [ebp - 0x408c]
mov edx, dword [ebp - 0x40cc]
push edx
lea eax, [ebp - 0x4090]
push eax
call dword [ebp - 0x408c]
add esp, 0x38
lea eax, [ebp - 0x4090]
lea esi, [ebp - 0x4110]
mov dword [ebp - 0x40cc], ebx
mov dword [ebp - 0x40c8], ebx
call fcn.004079a0
xor eax, eax
cmp edi, 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 - 0x10]
xor ecx, ebp
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret