Function at 0x40223b
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0xc
call fcn.00405a74
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_Wow64DisableWow64FsRedirection]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4022a9
push 6
call fcn.00405a62
add esp, 4
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4022be
mov eax, 0x409231
push eax
push 1
mov ebx, 0x268
call fcn.00405df0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x40925f
xor ecx, ecx
test eax, eax
je 0x4022e2
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
je 0x4022f3
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40230a
dec eax
test ecx, ecx
je 0x40230a
call fcn.0040218f
add esp, 0xc
test eax, eax
mov eax, 0
setne al
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40232a
push ebx
call fcn.00405a5c
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x4025b8
call fcn.00402617
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.00402002
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 0x409200
push dword [ebp - 0x18]
mov ecx, 3
call fcn.0040107b
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40237b
push ebx
call fcn.00405a5c
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40238b
push ebx
call fcn.00405a5c
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40239f
push ebx
call fcn.00405a5c
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
call fcn.00402002
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4023cb
push ebx
call fcn.00405a5c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4023f4
push 6
call fcn.00405a62
add esp, 4
push str....._
push dword [ebp - 8]
mov ecx, 2
call fcn.0040107b
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402431
push 6
call fcn.00405a62
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402441
push ebx
call fcn.00405a5c
add esp, 4
push dword [ebp - 0xc]
push str....._
push dword [ebp - 8]
mov ecx, 3
call fcn.0040107b
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402483
push 6
call fcn.00405a62
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402493
push ebx
call fcn.00405a5c
add esp, 4
push str....._
push dword [ebp - 8]
mov ecx, 2
call fcn.0040107b
add esp, 8
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push 0x409200
push dword [ebp - 8]
mov ecx, 3
call fcn.0040107b
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4024eb
push 6
call fcn.00405a62
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4024fb
push ebx
call fcn.00405a5c
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40250b
push ebx
call fcn.00405a5c
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40251e
mov eax, 0x409231
push eax
push 1
mov ebx, 0x238
call fcn.00406ba0
add esp, 0x10
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402546
mov eax, 0x409231
push eax
push 1
mov ebx, 0x268
call fcn.00405df0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x40925f
xor ecx, ecx
test eax, eax
je 0x40256a
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
je 0x40257b
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x402592
dec eax
test ecx, ecx
je 0x402592
call fcn.0040218f
add esp, 0xc
test eax, eax
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4025b2
push ebx
call fcn.00405a5c
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_Wow64RevertWow64FsRedirection]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4025db
push 6
call fcn.00405a62
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x4025e3
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4025f4
push ebx
call fcn.00405a5c
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402604
push ebx
call fcn.00405a5c
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00405a5c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4