Function at 0x4282c0
Capabilities:
Create directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6cdb
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4db06c]
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 ebx, ecx
mov dword [ebp - 0x288], ebx
mov eax, dword [ebp + 8]
lea edx, [ebx + 0xc88]
mov dword [ebp - 0x274], eax
mov eax, dword [ebx + 0xdc0]
add eax, 0x30
mov dword [ebp - 0x278], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x280], eax
lea edi, [eax + 1]
cmp edi, eax
jbe 0x428384
lea esi, [edi + edi*2]
shl esi, 6
cmp esi, dword [edx + 4]
jbe 0x42837e
cmp esi, dword [edx + 0xc]
ja 0x428342
push dword [edx + 0x14]
mov ecx, edx
call fcn.0045ed40
test eax, eax
jne 0x428372
push 1
push 0
push str.Cant_alloc_memory_dstDirStatSv_
mov ecx, ebx
call fcn.0041a620
xor eax, eax
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.00487555
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x280]
lea edx, [ebx + 0xc88]
mov dword [edx + 8], esi
mov dword [edx + 0x18], edi
mov esi, dword [ebp - 0x278]
lea edi, [eax + eax*2]
shl edi, 6
mov ecx, 0x30
add edi, dword [edx]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x18]
mov edi, dword [edx]
mov byte [ebp - 0x26d], 1
lea ecx, [eax + eax*2]
shl ecx, 6
add ecx, 0xffffff40
add edi, ecx
mov ecx, dword [ebx + 0xdc0]
mov dword [ebp - 0x27c], edi
test dword [ecx + 0x60], 0x400
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x278], eax
je 0x4283e8
mov eax, dword [ebx + 0x6a0]
and eax, 0x4000
mov byte [ebp - 0x26e], 1
or eax, 0
je 0x4283ef
mov byte [ebp - 0x26e], 0
cmp dword [ebx + 0x894], 0
je 0x428405
test byte [ecx + 0x6c], 0x10
mov byte [ebp - 0x26f], 1
je 0x42840c
mov byte [ebp - 0x26f], 0
mov edx, dword [ecx + 0x74]
mov esi, dword [ecx + 0x14]
mov eax, dword [ebx + 0x844]
mov edi, dword [ebp - 0x274]
mov dword [ebp - 0x28c], esi
test edx, edx
jne 0x428438
lea edx, [ecx + 0xe8]
lea ecx, [eax + edi*2]
call fcn.0041c060
jmp 0x42845b
push 0x4c1430
push edx
add ecx, 0xe8
lea eax, [eax + edi*2]
push ecx
push 0x104
push str._.s__d__s
push eax
call fcn.0040e140
add esp, 0x18
add eax, edi
mov dword [ebp - 0x274], eax
test esi, esi
je 0x428509
mov eax, dword [ebx + 0xca8]
sub eax, dword [ebx + 0xcac]
cmp eax, esi
jae 0x4284aa
lea eax, [esi + 0xffff]
and eax, 0xffff0000
lea ecx, [ebx + 0xca4]
push eax
call fcn.0045ed40
test eax, eax
jne 0x4284aa
push 1
push eax
push str.Cant_alloc_memory_dstDirExtBuf_
mov ecx, ebx
call fcn.0041a620
jmp 0x428829
mov eax, dword [ebx + 0xdc0]
push esi
push dword [eax + 0x1c]
mov eax, dword [ebx + 0xcac]
add eax, dword [ebx + 0xca4]
push eax
call fcn.00489a20
mov edi, dword [ebp - 0x27c]
add esp, 0xc
mov ecx, dword [ebx + 0xcac]
add ecx, dword [ebx + 0xca4]
mov eax, dword [edi + 0x70]
mov dword [edi + 0x60], ecx
add ecx, dword [edi + 0x6c]
add eax, ecx
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], eax
mov ecx, dword [ebx + 0xcac]
lea eax, [ecx + esi]
cmp eax, dword [ebx + 0xca8]
jbe 0x4284fe
int3
lea eax, [ecx + esi]
mov dword [ebx + 0xcac], eax
jmp 0x42850f
mov edi, dword [ebp - 0x27c]
cmp dword [ebp - 0x278], 0xe
jne 0x4285cb
cmp dword [ebx + 0x874], 0
je 0x42857c
push 0
push dword [ebx + 0x844]
call dword [sym.imp.KERNEL30.dll_CreateDirectoryW]
test eax, eax
jne 0x42857c
call dword [sym.imp.KERNEL30.dll_GetLastError]
cmp eax, 0xb7
je 0x4285cb
mov eax, dword [ebx + 0xb60]
push 0
add dword [eax + 0xd8], 1
adc dword [eax + 0xdc], 0
mov ecx, dword [ebx + 0x85c]
mov eax, dword [ebx + 0x844]
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
push str.CreateDirectory
call fcn.0041a620
jmp 0x4285cb
cmp dword [ebx + 0x864], 0
je 0x4285bd
cmp byte [ebp - 0x26e], 0
jne 0x4285bd
cmp dword [ebx + 0x694], 8
je 0x4285bd
mov eax, dword [ebx + 0x844]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi + 0x24]
push dword [edi + 0x20]
push ecx
mov ecx, dword [ebx + 0x85c]
push 2
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
call fcn.00417da0
mov eax, dword [ebx + 0xb60]
add dword [eax + 0x20], 1
adc dword [eax + 0x24], 0
cmp dword [ebx + 0x874], 0
je 0x4286c0
cmp byte [ebp - 0x26f], 0
je 0x4286c0
mov ecx, dword [ebx + 0x844]
lea eax, [ebp - 0x26c]
push ecx
push eax
mov dword [ebp - 0x284], ecx
call fcn.0045fd40
mov edi, eax
add esp, 8
mov dword [ebp - 0x280], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x42869f
cmp edi, 0xffffffff
je 0x42869f
mov ebx, dword [ebp - 0x284]
mov eax, dword [ebp - 0x274]
lea eax, [ebx + eax*2]
mov esi, eax
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x264]
sub esi, eax
lea ecx, [ebp - 0x264]
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x428650
push ebx
call dword [sym.imp.KERNEL30.dll_DeleteFileW]
lea edx, [ebp - 0x26c]
mov ecx, edi
call fcn.0045fdc0
test eax, eax
jne 0x428640
mov eax, dword [ebp - 0x284]
xor ecx, ecx
push edi
mov dword [ebp - 4], 0xffffffff
mov word [eax], cx
call dword [sym.imp.KERNEL30.dll_FindClose]
mov ebx, dword [ebp - 0x288]
mov esi, dword [ebp - 0x28c]
jmp 0x4286b6
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4286c0
cmp edi, 0xffffffff
je 0x4286b6
push edi
call dword [sym.imp.KERNEL30.dll_FindClose]
mov dword [ebp - 0x280], 0
cmp byte [ebp - 0x26e], 0
mov eax, dword [ebx + 0x844]
mov edi, dword [ebp - 0x274]
mov dword [eax + edi*2], 0x5c
jne 0x428701
lea eax, [edi + 1]
mov ecx, ebx
push eax
call fcn.00427da0
test eax, eax
setne cl
cmp dword [ebx + 0x100c], 0
mov byte [ebp - 0x26d], cl
jne 0x42882f
jmp 0x428707
mov cl, byte [ebp - 0x26d]
mov eax, dword [ebx + 0x844]
xor edx, edx
mov word [eax + edi*2], dx
mov edi, dword [ebp - 0x27c]
test cl, cl
je 0x42873f
test byte [edi + 0x3c], 2
je 0x42873f
cmp dword [ebx + 0x874], edx
je 0x42873f
mov eax, dword [ebx + 0x844]
push eax
push eax
call dword [sym.imp.KERNEL30.dll_MoveFileW]
mov cl, byte [ebp - 0x26d]
cmp dword [ebx + 0x874], 0
je 0x42878b
push edi
mov ecx, ebx
call fcn.00428870
test eax, eax
setne cl
mov byte [ebp - 0x26d], cl
test eax, eax
jne 0x42878b
mov al, byte [ebp - 0x26e]
test al, al
je 0x4287d9
cmp dword [ebp - 0x278], 0xe
jne 0x4287d9
mov edx, dword [ebx + 0x7a0]
mov ecx, dword [ebx + 0x844]
or edx, 0x100
call fcn.0045cd40
jmp 0x4287cd
cmp dword [ebx + 0x864], 0
je 0x4287d3
mov al, byte [ebp - 0x26e]
test al, al
je 0x4287d9
cmp dword [ebp - 0x278], 0xe
jne 0x4287d9
mov eax, dword [ebx + 0x844]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi + 0x24]
push dword [edi + 0x20]
push ecx
mov ecx, dword [ebx + 0x85c]
push 0xa
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
call fcn.00417da0
mov cl, byte [ebp - 0x26d]
mov al, byte [ebp - 0x26e]
cmp dword [ebx + 0x694], 5
jne 0x428808
test al, al
je 0x428808
xor eax, eax
test cl, cl
mov ecx, ebx
sete al
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebx + 0xdc0]
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0041ad10
test esi, esi
je 0x428829
mov ecx, dword [ebx + 0xcac]
neg esi
lea eax, [ecx + esi]
cmp eax, dword [ebx + 0xca8]
jbe 0x428820
int3
lea eax, [esi + ecx]
mov dword [ebx + 0xcac], eax
mov cl, byte [ebp - 0x26d]
mov eax, dword [ebx + 0xca0]
test eax, eax
je 0x42884a
add dword [ebx + 0xc90], 0xffffff40
dec eax
mov dword [ebx + 0xca0], eax
test cl, cl
je 0x428352
cmp dword [ebx + 0x100c], 0
jne 0x428352
mov eax, 1
jmp 0x428354