Function at 0x403990
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x208
mov eax, dword [0x44700c]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
mov byte [esp + 0x10], 0
push dword [esp + 0x10]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0xfc]
call fcn.0040aba0
mov ecx, eax
call fcn.00408fc0
push eax
lea ecx, [esp + 0xd4]
call fcn.00409e90
mov byte [esp + 0xc], 0
lea ecx, [esp + 0xf0]
push dword [esp + 0xc]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0040abe0
mov ecx, eax
call fcn.00408fc0
push eax
lea ecx, [esp + 0xd4]
call fcn.00409df0
mov byte [esp + 0xc], 0
lea ecx, [esp + 0xf0]
push dword [esp + 0xc]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0040ac20
mov ecx, eax
call fcn.00408fc0
mov edx, eax
lea ecx, [esp + 0xd0]
call fcn.0040ac60
test al, al
je 0x403aa1
mov byte [esp + 0xc], 0
lea ecx, [esp + 0xf0]
push dword [esp + 0xc]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0040ac70
mov ecx, eax
call fcn.00408fc0
push eax
lea ecx, [esp + 0xd4]
call fcn.00409df0
lea ecx, [esp + 0xd0]
call fcn.00409e40
mov byte [esp + 0xc], 0
lea ecx, [esp + 0xf0]
push dword [esp + 0xc]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0040aed0
mov ecx, eax
call fcn.00408fc0
mov dword [esp + 0x1c], eax
mov ecx, 0x44787c
lea eax, [esp + 0x30]
push eax
call fcn.00409bc0
mov ecx, 0x44787c
mov edx, dword [eax]
lea eax, [esp + 0x34]
push eax
call fcn.00409bf0
push ecx
push edx
lea ecx, [esp + 0x40]
push dword [eax]
call fcn.0040adb0
mov byte [esp + 0xc], 0
lea ecx, [esp + 0xd0]
push dword [esp + 0xc]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.0040ae90
mov ecx, eax
call fcn.00408fc0
mov edi, eax
mov ecx, 0x44787c
lea eax, [esp + 0x28]
push eax
call fcn.00409bc0
mov ecx, 0x44787c
mov edx, dword [eax]
lea eax, [esp + 0x2c]
push eax
call fcn.00409bf0
push ecx
push edx
lea ecx, [esp + 0x58]
push dword [eax]
call fcn.0040adb0
mov byte [esp + 0xc], 0
lea ecx, [esp + 0xb0]
push dword [esp + 0xc]
mov byte [esp + 0x18], 0
mov esi, eax
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0040acb0
mov ecx, eax
call fcn.00408e60
push eax
lea edx, [ebp + 8]
lea ecx, [esp + 0x9c]
call fcn.0040ad20
add esp, 4
lea ecx, [esp + 0x80]
mov edx, eax
push esi
call fcn.0040ae70
add esp, 4
lea ecx, [esp + 0x68]
mov edx, eax
push edi
call fcn.0040ad80
add esp, 4
mov edx, eax
push dword [esp + 0x18]
lea ecx, [esp + 0x114]
call fcn.0040ae70
add esp, 4
lea ecx, [esp + 0x140]
mov edx, eax
push dword [esp + 0x1c]
call fcn.0040ad80
add esp, 4
lea ecx, [esp + 0x110]
call fcn.00409e40
lea ecx, [esp + 0x68]
call fcn.00409e40
lea ecx, [esp + 0x80]
call fcn.00409e40
lea ecx, [esp + 0x98]
call fcn.00409e40
lea ecx, [esp + 0x50]
call fcn.00409e40
lea ecx, [esp + 0x38]
call fcn.00409e40
lea eax, [esp + 0x2c]
mov ecx, 0x44787c
push eax
call fcn.00409bc0
mov ecx, 0x44787c
mov edx, dword [eax]
lea eax, [esp + 0x28]
push eax
call fcn.00409bf0
push ecx
push edx
lea ecx, [esp + 0x58]
push dword [eax]
call fcn.0040adb0
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0xb0]
push dword [esp + 0x1c]
mov byte [esp + 0x1c], 0
mov esi, eax
push dword [esp + 0x1c]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
call fcn.0040acb0
mov ecx, eax
call fcn.00408e60
push eax
lea edx, [ebp + 8]
lea ecx, [esp + 0x3c]
call fcn.0040ad20
add esp, 4
lea ecx, [esp + 0x128]
mov edx, eax
push esi
call fcn.0040ae70
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00409e40
lea ecx, [esp + 0x50]
call fcn.00409e40
push ecx
lea ecx, [esp + 0x15c]
call fcn.00403f20
push ecx
lea ecx, [esp + 0x15c]
call fcn.00409b50
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0xd0]
push dword [esp + 0x1c]
mov byte [esp + 0x1c], 0
push dword [esp + 0x1c]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
call fcn.0040af10
mov ecx, eax
call fcn.00408fc0
push eax
lea ecx, [esp + 0x114]
call fcn.00409e90
mov byte [esp + 0x1c], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0xc], 0
push dword [esp + 0x1c]
lea ecx, [esp + 0xd4]
push dword [esp + 0x1c]
push dword [esp + 0x14]
call fcn.0040af50
mov ecx, eax
call fcn.00408fc0
push eax
lea ecx, [esp + 0xf4]
call fcn.00409e90
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0xd0]
push dword [esp + 0x1c]
mov byte [esp + 0x1c], 0
push dword [esp + 0x1c]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
call fcn.0040af90
mov ecx, eax
call fcn.00408fc0
push 1
mov esi, eax
lea ecx, [esp + 0x114]
push 0
lea eax, [esp + 0x40]
push eax
call fcn.00409c60
mov edx, esi
mov ecx, eax
call fcn.0040ac60
lea ecx, [esp + 0x38]
mov byte [esp + 0x23], al
call fcn.00409e40
cmp byte [esp + 0x23], 0
je 0x403df8
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0xd0]
push dword [esp + 0x1c]
mov byte [esp + 0x1c], 0
push dword [esp + 0x1c]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
call fcn.0040afd0
mov ecx, eax
call fcn.00408fc0
push eax
lea ecx, [esp + 0xf4]
call fcn.00409df0
lea ecx, [esp + 0xf0]
call fcn.00409e40
lea ecx, [esp + 0x110]
call fcn.00409e40
lea ecx, [esp + 0x128]
call fcn.00409cc0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
push ecx
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x164]
call fcn.00409af0
push 0x100
call fcn.0043b44b
add esp, 4
lea ecx, [esp + 0x158]
mov esi, eax
call fcn.00409b10
test al, al
je 0x403ea4
mov edi, dword [esp + 0x24]
nop dword [eax + eax]
call fcn.0040b010
push 8
push 4
push esi
push edi
call eax
cmp eax, 0xffffffff
je 0x403e8e
test eax, eax
jle 0x403ea4
push 0
push 4
push esi
lea ecx, [esp + 0x164]
mov byte [esi + eax], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
jmp 0x403e60
lea ecx, [esp + 0x128]
call fcn.00409cc0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
lea ecx, [esp + 0x158]
call fcn.00409ac0
lea ecx, [esp + 0x158]
call fcn.00403f00
lea ecx, [esp + 0x128]
call fcn.00409e40
lea ecx, [esp + 0x140]
call fcn.00409e40
lea ecx, [ebp + 8]
call fcn.00409e40
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
xor ecx, esp
call fcn.0043b1a9
mov esp, ebp
pop ebp
ret