Function at 0x4044d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b460
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x40450b
xor al, al
jmp 0x404775
push eax
lea ecx, [ebp - 0x2c]
call fcn.004031b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx - 1]
cmp ecx, edx
jbe 0x404791
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
cmp ebx, 8
cmovae eax, esi
cmp word [eax + edx*2], 0x5c
je 0x4045a3
cmp ecx, edx
jbe 0x404796
cmp ebx, 8
lea eax, [ebp - 0x2c]
cmovae eax, esi
cmp word [eax + edx*2], 0x2f
je 0x4045a3
mov eax, ebx
sub eax, ecx
cmp eax, 1
jb 0x40458b
cmp ebx, 8
lea esi, [ebp - 0x2c]
push 2
cmovae esi, dword [ebp - 0x2c]
lea edi, [ecx + 1]
push 0x536230
mov dword [ebp - 0x1c], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004f4a40
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4045a3
push 1
push 0x536230
mov byte [ebp - 0x58], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x58]
push 1
call fcn.00408630
lea ecx, [ebp - 0x2c]
call fcn.00403fa0
test al, al
jne 0x4045b7
mov byte [ebp - 0x45], al
jmp 0x40473a
cmp dword [ebp - 0x1c], 0
je 0x4045da
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4045da
mov bl, 1
jmp 0x40473d
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404140
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp ebx, eax
jne 0x404611
mov byte [ebp - 0x45], 0
jmp 0x4046e9
mov byte [ebp - 0x45], 1
mov esi, ebx
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x404621
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404640
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00403ab0
cmp dword [ebp - 0x34], 0
jne 0x404663
mov bl, 1
jmp 0x40467a
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete bl
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4046b4
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4046aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40479b
push edx
push ecx
call fcn.004f2ead
add esp, 8
test bl, bl
je 0x4046cf
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4046c2
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4046df
mov eax, dword [ebp - 0x50]
add esi, 0x18
cmp esi, eax
jne 0x404617
jmp 0x4046e6
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x45], 0
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40473a
push ecx
mov edx, eax
mov ecx, ebx
call fcn.00402fe0
mov ecx, dword [ebp - 0x4c]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x404730
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40479b
push ecx
push ebx
call fcn.004f2ead
add esp, 8
mov bl, byte [ebp - 0x45]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x404773
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404769
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047a0
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
call fcn.004024b0
call fcn.004024b0
call fcn.004f855c
call fcn.004f855c
int3