Function at 0x40f699
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x140
mov dword [ebp - 0x864], eax
xor edi, edi
lea eax, [ebp - 0x860]
mov dword [ebp - 0x86c], ebx
push edi
push eax
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00466ad0
push esi
call fcn.00451684
add esp, 0x34
test eax, eax
jne 0x40f780
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00452b01
lea eax, [ebp - 0x108]
push eax
call fcn.00451f5e
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
add esp, 0x10
push edi
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00410944
pop ecx
test eax, eax
jne 0x40f792
push edi
lea eax, [ebp - 0x108]
push eax
call esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:5:CopyNewerFiles___FAILED:_CreateDirectory___s___FAILED:__s
call fcn.0040d511
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret
push 0x104
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.00452b01
mov esi, 0x48a814
push esi
push ebx
call fcn.00466c30
add esp, 0x14
test eax, eax
jne 0x40f7d1
push ebx
call fcn.00410944
pop ecx
test eax, eax
je 0x40f7d1
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004501bc
pop ecx
pop ecx
push 0x400001
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00410e70
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x40f780
lea eax, [ebp - 0x310]
push 0x48a818
push eax
call fcn.004528d5
mov ebx, dword [ebp - 0x864]
xor esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x870], eax
test byte [ebp - 0x860], 0x10
mov dword [ebp - 0x868], esi
jne 0x40f8e5
push 0x104
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00452b01
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00451949
lea eax, [ebp - 0x860]
push eax
push edi
call fcn.00411402
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.0040eb71
add esp, 0x28
test eax, eax
jne 0x40f887
cmp dword [ebp + 0x14], eax
push 1
pop ecx
cmovne eax, ecx
jmp 0x40f88a
xor ecx, ecx
inc ecx
test ebx, ebx
je 0x40f8c4
test eax, eax
lea eax, [ebp - 0x20c]
jle 0x40f8b7
push 0
push eax
lea eax, [ebp - 0x834]
push eax
call ebx
mov ecx, dword [ebp - 0x868]
add esp, 0xc
test eax, eax
lea esi, [ecx + 1]
cmove esi, ecx
jmp 0x40f8e5
push ecx
push eax
lea eax, [ebp - 0x834]
push eax
call ebx
jmp 0x40f8dd
test eax, eax
jle 0x40f8e5
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.004114e9
add esp, 0xc
test eax, eax
je 0x40f8e5
inc esi
lea eax, [ebp - 0x860]
push eax
push edi
call fcn.0041143c
pop ecx
pop ecx
test eax, eax
jne 0x40f814
mov ebx, dword [ebp - 0x86c]
cmp dword [ebp + 0x18], eax
je 0x40fb1f
cmp dword [ebp - 0x870], eax
jne 0x40fb1f
push 0x104
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x720]
push 0
push eax
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00452b01
lea eax, [ebp - 0x414]
push eax
call fcn.00451da8
add esp, 0x40
lea eax, [ebp - 0x414]
push 0x48a814
push eax
call fcn.004501bc
push edi
call fcn.00410d43
push 0x400001
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00410e70
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x40f9e3
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x108]
push ecx
push ebx
push str.:7:CopyNewerFiles___s_____s___FAILED:_FindFirstFileOrdered___s___FAILED_to_find_subdirectories_
call fcn.0040d511
add esp, 0x10
jmp 0x40f780
mov ebx, dword [ebp - 0x864]
test byte [ebp - 0x860], 0x10
je 0x40fb08
lea eax, [ebp - 0x834]
push 0x489fcc
push eax
call fcn.00470340
pop ecx
pop ecx
test eax, eax
je 0x40fb08
lea eax, [ebp - 0x834]
push 0x491af0
push eax
call fcn.00470340
pop ecx
pop ecx
test eax, eax
je 0x40fb08
push 0x104
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00452b01
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00450244
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00452b01
lea eax, [ebp - 0x518]
push eax
call fcn.00451da8
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00470487
add esp, 0x2c
test eax, eax
je 0x40fb08
lea eax, [ebp - 0x518]
push eax
call fcn.00451bbc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00470487
add esp, 0xc
test eax, eax
je 0x40fb08
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.00452b01
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004501bc
push ebx
push dword [ebp + 0x18]
lea eax, [ebp - 0x720]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0040f699
add esp, 0x2c
add esi, eax
lea eax, [ebp - 0x860]
push eax
push edi
call fcn.0041143c
pop ecx
pop ecx
test eax, eax
jne 0x40f9e9
push edi
call fcn.00410d43
pop ecx
mov eax, esi
jmp 0x40f783