Function at 0x4595c4
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4595cc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459c41
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040a6b0
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1c], 2
jle 0x459626
mov edx, 7
mov eax, 0x459c58
call fcn.00423b18
mov eax, dword [ebp - 8]
mov byte [eax + 0x18], 0xa
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
jmp 0x459c1e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x2c]
mov edx, 0x459c9c
call fcn.004049c0
mov eax, dword [ebp - 0x2c]
mov edx, 7
call fcn.00423af8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
lea eax, [ebp - 0x30]
call fcn.004049c0
mov eax, dword [ebp - 0x30]
call fcn.00426660
test al, al
jne 0x4596a0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea eax, [ebp - 0x34]
mov edx, 0x459cb0
call fcn.004049c0
mov eax, dword [ebp - 0x34]
mov edx, 7
call fcn.00423b18
mov eax, dword [ebp - 8]
mov byte [eax + 0x18], 0xa
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
jmp 0x459c1e
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.00426794
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004083d4
mov eax, dword [ebp - 0x38]
mov edx, 0x459ce4
call fcn.00404ac0
jne 0x4599d6
xor eax, eax
push ebp
push 0x4599c0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
lea eax, [ebp - 0x40]
call fcn.004049c0
mov eax, dword [ebp - 0x40]
call fcn.00404b74
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459cf4
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459d00
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00404a34
mov eax, dword [ebp - 0x44]
call fcn.00404b74
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
lea eax, [ebp - 0x48]
call fcn.004049c0
mov eax, dword [ebp - 0x48]
call fcn.00404b74
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
call fcn.0040473c
mov edx, dword [ebp - 0x24]
mov eax, 0x459d10
call fcn.00404c5c
mov ecx, eax
lea eax, [ebp - 0x24]
mov edx, 1
call fcn.00404c14
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call fcn.0040473c
mov edx, dword [ebp - 0x28]
mov eax, 0x459d1c
call fcn.00404c5c
mov ecx, eax
lea eax, [ebp - 0x28]
mov edx, 1
call fcn.00404c14
cmp dword [ebp - 0x28], 0
jne 0x4597b5
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call fcn.0040473c
mov dl, 1
mov eax, dword [0x415ca0]
call fcn.004037f8
mov ebx, eax
mov edx, 0x459d28
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459d48
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459d58
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459d6c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x459d8c
push dword [ebp - 0x28]
push 0x459da0
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404a34
mov edx, dword [ebp - 0x4c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459db0
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x459dd8
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459dec
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404a34
mov edx, dword [ebp - 0x50]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x459dfc
push dword [ebp - 0x24]
push 0x459e14
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404a34
mov edx, dword [ebp - 0x54]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459e28
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459e90
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459ea4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x459ebc
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459ed8
push dword [ebp - 0x24]
push 0x459efc
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.00404a34
mov edx, dword [ebp - 0x58]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x459ebc
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459f14
push dword [ebp - 0x24]
push 0x459efc
lea eax, [ebp - 0x5c]
mov edx, 5
call fcn.00404a34
mov edx, dword [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459f38
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x459f50
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459cf4
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459f60
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.00404a34
mov edx, dword [ebp - 0x60]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403828
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459cf4
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459f60
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.00404a34
mov eax, dword [ebp - 0x64]
call fcn.00426660
test al, al
je 0x4599ac
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459cf4
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459d00
lea eax, [ebp - 0x68]
mov edx, 5
call fcn.00404a34
mov eax, dword [ebp - 0x68]
call fcn.00426660
test al, al
je 0x4599ac
mov eax, dword [ebp - 8]
mov byte [eax + 0x18], 3
jmp 0x4599b3
mov eax, dword [ebp - 8]
mov byte [eax + 0x18], 8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459c16
xor ecx, ecx
mov dl, 1
mov eax, dword [0x456aec]
call fcn.004574bc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x459bf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x459f68]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459cf4
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00404a34
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
lea eax, [ebp - 0x70]
call fcn.004049c0
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00457bdc
mov dl, 1
mov eax, dword [0x441614]
call fcn.004416b8
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459cf4
mov eax, dword [ebp - 8]
push dword [eax]
push 0x459f74
lea eax, [ebp - 0x74]
mov edx, 5
call fcn.00404a34
mov edx, dword [ebp - 0x74]
mov eax, edi
call fcn.004416d8
test al, al
jne 0x459aa2
mov edx, 7
mov eax, 0x459f84
call fcn.00423b18
mov eax, dword [ebp - 8]
mov byte [eax + 0x18], 8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459c1e
mov eax, dword [edi + 0x20]
call fcn.00405a44
test eax, eax
jle 0x459b64
mov eax, dword [edi + 0x20]
call fcn.00405a44
mov esi, eax
dec esi
test esi, esi
jl 0x459b64
inc esi
xor ebx, ebx
mov eax, dword [edi + 0x20]
mov eax, dword [eax + ebx*8]
lea edx, [ebp - 0x78]
call fcn.004083d4
mov eax, dword [ebp - 0x78]
mov edx, 0x459fac
call fcn.00404ac0
jne 0x459b5c
lea eax, [ebp - 0x10]
mov edx, dword [edi + 0x20]
mov edx, dword [edx + ebx*8 + 4]
call fcn.0040473c
mov edx, 7
mov eax, dword [ebp - 0x10]
call fcn.0040888c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x12]
call fcn.00450d8c
movzx eax, word [ebp - 0x12]
cmp eax, dword [ebp - 0x18]
jge 0x459b5c
push 0x459fbc
lea edx, [ebp - 0x80]
movzx eax, word [ebp - 0x12]
call fcn.004086e4
push dword [ebp - 0x80]
push 0x459ff0
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404a34
mov eax, dword [ebp - 0x7c]
mov edx, 7
call fcn.00423b7c
mov eax, dword [ebp - 8]
mov byte [eax + 0x18], 8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459c1e
inc ebx
dec esi
jne 0x459ac8
mov eax, dword [ebp - 8]
add eax, 0x14
call fcn.004046a4
mov eax, dword [edi + 0x1c]
call fcn.00405a44
mov esi, eax
dec esi
test esi, esi
jl 0x459bc8
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
mov eax, dword [edi + 0x1c]
push dword [eax + ebx*8]
push 0x45a00c
mov eax, dword [ebp - 8]
add eax, 0x14
mov edx, 3
call fcn.00404a34
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
mov eax, dword [edi + 0x1c]
push dword [eax + ebx*8 + 4]
push 0x45a00c
mov eax, dword [ebp - 8]
add eax, 0x14
mov edx, 3
call fcn.00404a34
inc ebx
dec esi
jne 0x459b81
mov eax, dword [ebp - 8]
mov byte [eax + 0x18], 3
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 4]
call fcn.00458290
mov eax, edi
call fcn.00403828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459c16
mov eax, dword [ebp - 0xc]
call fcn.00403828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459c48
lea eax, [ebp - 0x80]
mov edx, 0x18
call fcn.004046c8
lea eax, [ebp - 0x10]
call fcn.004046a4
ret