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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6776
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x51f164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x58]
push str.:Users_
cmovae esi, dword [ebp + 8]
mov edx, 0x520088
call fcn.00439b40
add esp, 4
mov byte [ebp - 4], 1
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x80], 0
cmovae edx, dword [ebp - 0x58]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413182
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.00436c20
mov ecx, esi
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4131a7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x90]
call fcn.004380d0
mov dword [ebp - 0x68], 0
xor ecx, ecx
mov dword [ebp - 0x64], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x4fb000
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.004380d0
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x413278
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41326e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413578
push edx
push ecx
call fcn.00490c3c
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x7c]
cmp edx, 8
jb 0x4132cd
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4132c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413578
push edx
push ecx
call fcn.00490c3c
add esp, 8
xor eax, eax
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov dword [ebp - 0x7c], 7
cmovae edi, dword [ebp - 0x28]
mov ecx, edi
mov word [ebp - 0x90], ax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413310
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xa8]
call fcn.00436c20
push 8
push str.AppData_
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 7
call fcn.004380d0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x4133a6
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41339c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41357d
push edx
push ecx
call fcn.00490c3c
add esp, 8
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
push dword [ebp - 0x60]
cmovae esi, dword [ebp - 0x40]
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413400
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp - 0x60]
call esi
push 0
test eax, eax
jne 0x4133dc
push dword [ebp - 0x60]
call esi
push 0
push edi
call esi
test eax, eax
jne 0x4133f6
push eax
push edi
call esi
mov edi, dword [ebp - 0x5c]
push 0
push edi
call esi
push 0
push edi
call esi
jmp 0x413441
mov edi, dword [ebp - 0x5c]
push 0
push edi
call esi
jmp 0x413441
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413441
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41342a
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call edi
push 0
push esi
call edi
jmp 0x413430
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413441
push 0
push esi
call edi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41347b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413471
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413582
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4134c9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4134bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413582
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x413513
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413509
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413582
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x41355d
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413553
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413582
push edx
push ecx
call fcn.00490c3c
add esp, 8
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.004905bb
mov esp, ebp
pop ebp
ret
call fcn.004b5132
call fcn.004b5132
call fcn.004b5132
int3