Function at 0x402fe8
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x403032
push 0
push 0x401caa9
push 6
call fcn.004051a8
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x403050
push eax
mov ebx, eax
call fcn.00401269
inc eax
push eax
call fcn.004051ba
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403061
push ebx
call fcn.004051c0
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x20
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403084
mov eax, 0x410235
push eax
push 2
mov ebx, 0x260
call fcn.00405b70
add esp, 0x1c
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4030aa
mov eax, 0x410235
push eax
push 1
mov ebx, 0x244
call fcn.00405b90
add esp, 0x10
mov dword [ebp - 0x10], esp
push 0x64
xor eax, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4030eb
push 0x78
push 0x401caa9
push 6
call fcn.004051a8
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4030fe
mov eax, 0x410235
push eax
push 1
mov ebx, 0x24c
call fcn.00406790
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x4033eb
push 0xa
push 5
call fcn.004034f4
mov dword [ebp - 0x10], eax
push 1
push 2
push dword [ebp - 0x10]
call fcn.0040352b
mov dword [ebp - 0x14], eax
call fcn.004037aa
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.004012d4
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403170
push ebx
call fcn.004051c0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x403180
push ebx
call fcn.004051c0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403194
push ebx
call fcn.004051c0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0xb
push 1
mov ebx, 0x1c
mov eax, 0x40cec0
call fcn.004055a0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0xa
push 5
call fcn.004034f4
mov dword [ebp - 0x14], eax
push 1
push 2
push dword [ebp - 0x14]
call fcn.0040352b
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.004012d4
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403208
push ebx
call fcn.004051c0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x403218
push ebx
call fcn.004051c0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [0x2c74432]
test ebx, ebx
je 0x40322f
push ebx
call fcn.004051c0
add esp, 4
pop eax
mov dword [0x2c74432], eax
mov dword [ebp - 0x10], esp
push dword [0x2c74436]
push dword [0x2c74432]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40326a
push 0x1f5
push 0x401caa9
push 6
call fcn.004051a8
add esp, 0xc
push 0x2c219de
push dword [0x2c74432]
mov ecx, 2
call fcn.004012d4
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [0x2c74436]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4032b7
push 0x228
push 0x401caa9
push 6
call fcn.004051a8
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4032c7
push ebx
call fcn.004051c0
add esp, 4
push dword [ebp - 0xc]
push 0x2c219de
push dword [0x2c74432]
mov ecx, 3
call fcn.004012d4
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x403314
push 0x26f
push 0x401caa9
push 6
call fcn.004051a8
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403324
push ebx
call fcn.004051c0
add esp, 4
push 0x2c219de
push dword [0x2c74432]
mov ecx, 2
call fcn.004012d4
add esp, 8
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
push 0x41034b
push dword [0x2c74432]
mov ecx, 3
call fcn.004012d4
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40338c
push 0x2d5
push 0x401caa9
push 6
call fcn.004051a8
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40339c
push ebx
call fcn.004051c0
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4033ac
push ebx
call fcn.004051c0
add esp, 4
push dword [ebp - 0xc]
push 0x41034b
push dword [ebp - 0xc]
push 0x41034b
push dword [0x2c74432]
mov ecx, 5
call fcn.004012d4
add esp, 0x14
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004038a2
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4033eb
push ebx
call fcn.004051c0
add esp, 4
cmp dword [ebp + 0xc], 1
jne 0x4034a2
push VariantClear
push 0
push 0x2c219e5
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403414
mov eax, 0x410235
push eax
push 2
mov ebx, 0x26c
call fcn.00405ba0
add esp, 0x1c
cmp dword [ebp + 0x10], 1
jne 0x4034a2
mov dword [ebp - 0x10], esp
push 0x64
xor eax, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40345f
push 0x3ee
push 0x401caa9
push 6
call fcn.004051a8
add esp, 0xc
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 2
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40348a
mov eax, 0x410235
push eax
push 3
mov ebx, 0x270
call fcn.00406890
add esp, 0x28
mov dword [0x2c7443a], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4034ce
push 0x472
push 0x401caa9
push 6
call fcn.004051a8
add esp, 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4034de
push ebx
call fcn.004051c0
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4034ee
push ebx
call fcn.004051c0
add esp, 4
mov esp, ebp
pop ebp
ret 0x10