Function at 0x4405c0
Capabilities:
Delete directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537d1b
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
call fcn.004c6240
test eax, eax
je 0x440854
mov ecx, esi
call fcn.004402e0
mov ecx, esi
call fcn.0043ff30
mov ecx, esi
call fcn.0043f030
mov eax, dword [esi]
mov ecx, dword [eax + 0x60]
add ecx, 0x17ac
push edi
push ecx
call fcn.004cabd0
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
add eax, 0x448
push edi
push eax
call fcn.004cabd0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x60]
add edx, 0x18b0
push edi
push edx
call fcn.004cabd0
mov eax, dword [esi]
mov ecx, dword [eax + 0x60]
add ecx, 0x19b4
push edi
push ecx
call fcn.004cabd0
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
add eax, 0x98cc
push edi
push eax
call fcn.004cabd0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x60]
add edx, 0x9ad4
push edi
push edx
call fcn.004cabd0
mov eax, dword [esi]
mov ecx, dword [eax + 0x60]
add ecx, 0xa60
push edi
push ecx
call fcn.004cabd0
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
add eax, 0x754
push edi
push eax
call fcn.004cabd0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x60]
add esp, 0x40
add edx, 0x1d4
push edi
push edx
call fcn.004cabd0
mov eax, dword [esi]
mov ecx, dword [eax + 0x60]
add ecx, 0x650
push edi
push ecx
call fcn.004cabd0
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
add eax, 0x1ab8
push edi
push eax
call fcn.004cabd0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x60]
add edx, 0x1ec8
push edi
push edx
call fcn.004cabd0
mov eax, dword [esi]
add esp, 0x20
mov eax, dword [eax + 0x60]
add eax, 0xb64
cmp byte [eax], 0
je 0x440706
push edi
push eax
call fcn.004cabd0
add esp, 8
mov ecx, dword [esi]
mov eax, dword [ecx + 0x60]
add eax, 0x858
cmp byte [eax], 0
je 0x440720
push 0
push eax
call fcn.004cabd0
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
add eax, 0x1dc4
cmp byte [eax], 0
je 0x44073a
push 0
push eax
call fcn.004cabd0
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GetVersion]
call edi
cmp eax, 0x80000000
jae 0x44075d
mov eax, dword [esi]
mov ecx, dword [eax + 0x60]
add ecx, 0x1bbc
push ecx
call fcn.0043feb0
add esp, 4
mov ecx, esi
call fcn.0043f720
mov ecx, esi
call fcn.0043fab0
mov ecx, esi
call fcn.00440220
mov ecx, esi
call fcn.0043f9a0
mov ecx, esi
call fcn.0043f4e0
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esi]
lea eax, [ebp - 0x320]
push eax
call fcn.0043efb0
mov dword [ebp - 4], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4407b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x320]
call fcn.004bfa40
lea ecx, [ebp - 0x114]
push 0x5c
push ecx
call fcn.004ff460
add esp, 8
test eax, eax
je 0x4407e4
mov byte [eax], 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.004ff027
add esp, 8
test eax, eax
je 0x44084d
lea ecx, [ebp - 0x31c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x561b20
call esi
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call edi
cmp eax, 0x80000000
jae 0x440844
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004cabd0
add esp, 8
lea ecx, [ebp - 0x31c]
push ecx
call esi
mov eax, 1
jmp 0x440856
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret