Function at 0x43e110
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493e12
mov eax, dword fs:[0]
push eax
sub esp, 0x5ac
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5a8], ecx
push 1
lea ecx, [ebp - 0xc4]
call fcn.00442310
mov dword [ebp - 4], 0
push 0x40
push 1
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004423c0
lea ecx, [ebp - 0xc4]
call fcn.00442480
movzx ecx, al
test ecx, ecx
jne 0x43e1c0
mov edx, dword [ebp + 0x10]
push edx
push 0x4a0278
push 0x4a026c
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0xc
mov dword [ebp - 0x560], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.00441b70
mov eax, dword [ebp - 0x560]
jmp 0x43e650
mov dword [ebp - 0x528], 0
lea ecx, [ebp - 0x2c]
call fcn.0040a270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x31c]
call fcn.0040a270
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x55c]
call fcn.0040a270
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x540]
call fcn.00407ae0
mov byte [ebp - 4], 4
mov dword [ebp - 0x2f4], 0
push 0x22c
push 0
lea eax, [ebp - 0x2f0]
push eax
call fcn.00472990
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2f4], ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0xc4]
push eax
call fcn.00444b00
add esp, 8
mov dword [ebp - 0x564], eax
mov ecx, dword [ebp - 0x564]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x564]
add ecx, dword [edx + 4]
call fcn.0042f590
test eax, eax
je 0x43e433
push 0xffffffffffffffff
push 0x2c
lea ecx, [ebp - 0x2c]
call fcn.00441d40
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x43e2ab
lea ecx, [ebp - 0x2c]
call fcn.004049e0
push eax
push str.import_err_format:_S
push 0x4a0298
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0xc
mov dword [ebp - 0x528], 0xfffffff5
jmp 0x43e433
mov eax, dword [ebp - 0x30]
push eax
push 0
lea ecx, [ebp - 0x580]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041d980
mov dword [ebp - 0x5ac], eax
mov edx, dword [ebp - 0x5ac]
mov dword [ebp - 0x5b0], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5b0]
push eax
lea ecx, [ebp - 0x31c]
call fcn.0040a290
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x580]
call fcn.004044e0
lea ecx, [ebp - 0x31c]
call fcn.00401d40
cmp eax, 0x200
jbe 0x43e33c
lea ecx, [ebp - 0x2c]
call fcn.004049e0
push eax
push str.import_err_format2:_S
push 0x4a02d0
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0xc
mov dword [ebp - 0x528], 0xfffffff5
jmp 0x43e433
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x30]
add ecx, 1
push ecx
lea edx, [ebp - 0x59c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0041d980
mov dword [ebp - 0x5b4], eax
mov eax, dword [ebp - 0x5b4]
mov dword [ebp - 0x5b8], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x5b8]
push ecx
lea ecx, [ebp - 0x55c]
call fcn.0040a290
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x59c]
call fcn.004044e0
lea ecx, [ebp - 0x55c]
call fcn.00401d40
cmp eax, 0x40
je 0x43e3cb
lea ecx, [ebp - 0x2c]
call fcn.004049e0
push eax
push str.import_err_format3:_S
push 0x4a0308
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0xc
mov dword [ebp - 0x528], 0xfffffff5
jmp 0x43e433
push 0x200
push 0
lea edx, [ebp - 0x2f0]
push edx
call fcn.00472990
add esp, 0xc
lea ecx, [ebp - 0x31c]
call fcn.004049e0
push eax
push 0x200
lea eax, [ebp - 0x2f0]
push eax
call fcn.004771b5
add esp, 0xc
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x55c]
call fcn.004049e0
push eax
call fcn.0040a1f0
add esp, 8
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x540]
call fcn.00407b80
jmp 0x43e22c
cmp dword [ebp - 0x528], 0
je 0x43e49e
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x5a0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x540]
call fcn.00407b40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x55c]
call fcn.004044e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x31c]
call fcn.004044e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004044e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.00441b70
mov eax, dword [ebp - 0x5a0]
jmp 0x43e650
lea ecx, [ebp - 0x2fc]
call fcn.0040b370
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e511
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43e4f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.del_old__s_ret:0x_x
push 0x4a0340
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x43e511
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4a0380
push 0x4a0374
call fcn.00401340
add esp, 4
push eax
call fcn.004013f0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x524], dx
push 0x206
push 0
lea eax, [ebp - 0x522]
push eax
call fcn.00472990
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x524]
push ecx
call fcn.0040a7c0
add esp, 8
lea edx, [ebp - 0x524]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43e5b6
push 0
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43e594
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x524]
push ecx
push 0x4a03a4
push 0x4a0398
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x43e5b6
lea edx, [ebp - 0x524]
push edx
push str.create__s
push 0x4a03c4
call fcn.00401340
add esp, 4
push eax
call fcn.004013f0
add esp, 0xc
lea ecx, [ebp - 0x2fd]
call fcn.00427990
mov byte [ebp - 4], 8
lea eax, [ebp - 0x540]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2fd]
call fcn.00402950
mov dword [ebp - 0x5a4], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2fd]
call fcn.0041f800
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2fc]
call fcn.0040b430
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x540]
call fcn.00407b40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x55c]
call fcn.004044e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x31c]
call fcn.004044e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004044e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.00441b70
mov eax, dword [ebp - 0x5a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 0xc