Function at 0x43a7a0
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49dd56
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c1bd8]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov edi, dword [esp + 0x454]
xor ebx, ebx
cmp edi, ebx
je 0x43aa36
xor eax, eax
cmp ax, word [edi]
je 0x43aa36
push edi
push 0x4a5234
call fcn.0040cd20
push 0x206
lea edx, [esp + 0x246]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x24c], cx
call fcn.00454ce0
add esp, 0x14
push edi
push 0x208
lea eax, [esp + 0x240]
push eax
call fcn.0040d2b0
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [esp + 0x18]
call fcn.004396e0
lea edx, [esp + 0x238]
push 0x5c
push edx
mov dword [esp + 0x454], ebx
call fcn.00453ab2
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x43a919
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x238]
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov word [esi], ax
call fcn.004190e0
mov edx, 0x5c
mov word [esi], dx
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x450], 1
call ebp
test eax, eax
jne 0x43a8da
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43a989
mov edx, dword [esp + 0x14]
push edx
push 0x4a5218
call fcn.0040cd20
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0043a2b0
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.00453ab2
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x44c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a911
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x43a875
push 0x206
lea edx, [esp + 0x36]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3c], cx
call fcn.00454ce0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43a9c4
lea edx, [esp + 0x30]
push edx
push 0x4a51f4
call fcn.0040cd20
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
jmp 0x43a9d6
mov ecx, dword [esp + 0x14]
push ecx
push 0x4a51d4
call fcn.0040cd20
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x44c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43a9d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x43a9d6
lea ecx, [esp + 0x30]
push ecx
push 0x4a51b0
call fcn.0040cd20
add esp, 8
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x24]
sar esi, 2
sub esi, 1
js 0x43aa1e
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esp, [esp]
push esi
lea ecx, [esp + 0x1c]
call fcn.00439740
mov eax, dword [eax]
push eax
call edi
push esi
lea ecx, [esp + 0x1c]
call fcn.00439740
mov edx, dword [eax]
push edx
push 0x4a5188
call fcn.0040cd20
add esp, 8
sub esi, 1
jns 0x43a9f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x44c], 0xffffffff
call fcn.00439bc0
mov eax, ebx
jmp 0x43aa38
xor eax, eax
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00454cc7
add esp, 0x43c
ret 4