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

Disassembly:
push 0xffffffffffffffff
push 0x5901c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x5f7780
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov bl, 1
push 0x17
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], bl
call fcn.00534020
add esp, 4
lea edi, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.00480f90
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5354e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x5bcbe4
call fcn.00478cb0
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.00480f90
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53552d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call esi
cmp eax, 0xffffffff
jne 0x535550
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x535718
push 0xa
push 0x5b5e84
lea ecx, [esp + 0x1c]
push ecx
call fcn.00473c80
mov edx, dword [esp + 0x14]
push edx
call esi
cmp eax, 0xffffffff
jne 0x535718
lea eax, [esp + 0x28]
push eax
call fcn.00534710
add esp, 4
lea edi, [esp + 0x18]
mov byte [esp + 0x48], 4
call fcn.00480f90
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5355b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call esi
cmp eax, 0xffffffff
je 0x535718
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x83
push str._from:_d
lea edi, [esp + 0x28]
mov byte [esp + 0x50], 5
call fcn.00481690
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
push 0
push ecx
mov ecx, dword [esp + 0x28]
push 0x5adcfc
xor edx, edx
mov edi, ebp
call fcn.00534170
add esp, 0x14
test eax, eax
jne 0x5356f7
push eax
call fcn.00564426
add esp, 4
lea edx, [esp + 0x28]
push edx
mov ecx, str.gamestartmenuforgamebox
mov edi, eax
call fcn.00481430
lea eax, [esp + 0x24]
mov bl, 6
push eax
mov ecx, str.SoftwareKingsoftKVip
mov byte [esp + 0x4c], bl
call fcn.00481430
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, SysReAllocStringLen
mov byte [esp + 0x50], 7
call fcn.0047b9d0
lea ecx, [esp + 0x28]
push ecx
push str.kybox
mov byte [esp + 0x50], 8
mov edx, dword [0x5f8cb8]
push 0x5aeb8c
push edx
push 0x5aebdc
mov esi, eax
call fcn.00479130
add esp, 8
mov esi, eax
call fcn.00479130
add esp, 8
mov edx, edi
mov esi, eax
call fcn.00478f50
lea esi, [esp + 0x2c]
call fcn.0047b970
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5356ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5356ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 1
lea eax, [ebp - 0x10]
mov byte [esp + 0x48], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535718
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53573d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret