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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4f48
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45359e
test al, 0x10
je 0x45359e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
cmp eax, 0x5c
je 0x4535ab
cmp eax, 0x2f
jne 0x4535d2
movzx eax, word [esi + 2]
cmp eax, 0x5c
je 0x4535b9
cmp eax, 0x2f
jne 0x4535d2
cmp word [esi + 4], 0x3f
jne 0x4535d2
movzx eax, word [esi + 6]
cmp eax, 0x5c
je 0x4535ce
cmp eax, 0x2f
jne 0x4535d2
mov al, 1
jmp 0x4535d4
xor al, al
test al, al
lea ecx, [esi + 8]
cmove ecx, esi
movzx eax, word [ecx]
cmp eax, 0x61
jb 0x4535e9
cmp eax, 0x7a
jbe 0x4535f2
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x453622
cmp word [ecx + 2], 0x3a
jne 0x453622
movzx eax, word [ecx + 4]
cmp eax, 0x5c
je 0x453607
cmp eax, 0x2f
jne 0x453622
cmp word [ecx + 6], 0
jne 0x453622
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00453470
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00452230
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00452510
mov edi, dword [ebp - 0x18]
test eax, eax
js 0x45366e
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x45366e
cmp edi, 1
jne 0x45365e
mov bl, 1
jmp 0x45386b
mov ebx, dword [ebp - 0x1c]
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebx + ecx*2], ax
jmp 0x453671
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d929
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
push ecx
push ebx
push eax
call fcn.004a5400
add esp, 0xc
mov byte [ebp - 4], 1
mov esi, edi
nop
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4537ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x453719
lea ecx, [ebp - 0x60]
call fcn.00402c30
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00452c80
test al, al
jne 0x4536f8
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
call fcn.0048d8c3
add esp, 4
jmp 0x453719
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
shr ebx, 4
call fcn.0048d8c3
add esp, 4
and bl, 1
mov ebx, dword [ebp - 0x1c]
jne 0x4537ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x45389c
test edi, edi
je 0x45389c
lea esi, [edi - 1]
movzx eax, word [ebx + esi*2]
lea esi, [ebx + esi*2]
cmp eax, 0x5c
je 0x45375b
cmp ax, 0x2f
je 0x45375b
cmp esi, ebx
je 0x45389c
movzx eax, word [esi - 2]
sub esi, 2
cmp eax, 0x5c
jne 0x453741
sub esi, ebx
sar esi, 1
js 0x45389c
test esi, esi
je 0x45389c
cmp esi, 1
jne 0x453787
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x45389c
cmp eax, 0x2f
je 0x45389c
lea eax, [esi + 1]
cmp dword [ebp - 0x10], eax
jae 0x45389c
cmp esi, edi
jae 0x4536b0
mov edi, esi
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebx + esi*2], ax
jmp 0x4536b0
cmp esi, dword [ebp - 0x24]
jge 0x45385e
mov edi, dword [ebp - 0x14]
nop word [eax + eax]
mov edx, dword [ebp - 0x28]
add edx, 2
movzx eax, word [edx + esi*2]
lea edx, [edx + esi*2]
mov ecx, edx
test ax, ax
je 0x4537f4
cmp ax, 0x5c
je 0x45388a
cmp ax, 0x2f
je 0x45388a
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4537d4
mov esi, dword [ebp - 0x24]
cmp esi, edi
jbe 0x45382c
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d929
add esp, 4
mov edi, eax
push ebx
call fcn.0048d8c3
mov ebx, edi
add esp, 4
mov edi, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
test esi, esi
je 0x453840
lea eax, [esi + esi]
push eax
push dword [ebp - 0x28]
push ebx
call fcn.004a5400
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x18], esi
push eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45389c
cmp esi, dword [ebp - 0x24]
jl 0x4537c0
mov bl, 1
push dword [ebp - 0x28]
call fcn.0048d8c3
add esp, 4
push dword [ebp - 0x1c]
call fcn.0048d8c3
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub ecx, edx
sar ecx, 1
js 0x4537f4
inc esi
add esi, ecx
jmp 0x4537f7
xor bl, bl
jmp 0x453860