Function at 0x445940
Capabilities:
Create directory
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x500240
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x54c494]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54c494]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
mov ebx, ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
mov edi, 0x10
cmp dword [ebp + 0x18], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
lea esi, [ebp + 4]
jb 0x4459b6
mov eax, dword [esi]
jmp 0x4459b8
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4459d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x445ad6
cmp dword [ebp + 0x18], edi
jb 0x4459df
mov eax, dword [esi]
jmp 0x4459e1
mov eax, esi
lea edi, [ebx + 0x10]
push eax
mov ecx, edi
call fcn.00444de0
call fcn.00434610
test al, al
je 0x445af5
lea ecx, [esp + 0x48]
push ecx
call fcn.00435940
add esp, 4
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x70], 0
jb 0x445a1c
mov eax, dword [eax + 4]
jmp 0x445a1f
add eax, 4
mov edx, dword [ebp + 0x14]
push ecx
push eax
push edx
push 0
mov ecx, ebp
call int.004374c0
test eax, eax
sete bl
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x70], 0xffffffff
jb 0x445a4f
mov eax, dword [esp + 0x4c]
push eax
call fcn.00487d62
add esp, 4
test bl, bl
je 0x445aa4
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov byte [esp + 0x20], 0x5c
call fcn.00445620
push eax
push 0
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
call int.004399e0
mov eax, dword [esp + 0x4c]
mov ebx, 0x10
cmp dword [esp + 0x60], ebx
jae 0x445a8a
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [esp + 0x60], ebx
jb 0x445aa4
mov eax, dword [esp + 0x4c]
push eax
call fcn.00487d62
add esp, 4
cmp dword [ebp + 0x18], 0x10
jb 0x445aae
mov eax, dword [esi]
jmp 0x445ab0
mov eax, esi
push 0
push 0x2000000
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x445ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xfffffffa
jmp 0x445c3f
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
push esi
mov ecx, edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x24]
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
mov esi, eax
test esi, esi
je 0x445c3d
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
test al, al
jne 0x445c29
mov ecx, ebp
call fcn.00401c10
mov ecx, eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x445b40
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00403480
push 1
push 0x50dcb8
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], 1
call fcn.00410553
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x445b80
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00410553
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
test al, al
jne 0x445bf1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call edx
mov edi, eax
cmp edi, 0xfffffff9
je 0x445bd9
cmp edi, 0xfffffffa
jne 0x445bf8
cmp dword [esp + 0x44], 0x10
jb 0x445bed
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00487d62
add esp, 4
mov eax, edi
jmp 0x445c3f
mov eax, dword [esp + 0x18]
mov byte [eax], 1
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x70], 0xffffffff
jb 0x445c14
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00487d62
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
push esi
mov ecx, ebx
call eax
mov esi, eax
test esi, esi
jne 0x445b08
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004b596a
add esp, 0x60
ret 0x18