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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d97e
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp - 0xd8]
add ecx, 0x824
call fcn.1001ac20
push 0xa
mov eax, dword [ebp - 0xd8]
add eax, 0x824
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push 0x101d76b2
call fcn.10003f60
mov dword [ebp - 0xf0], eax
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf4], esp
mov edx, dword [ebp - 0xd8]
add edx, 0x39c
push edx
call fcn.1001ae30
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xfc], esp
mov eax, dword [ebp + 8]
push eax
call fcn.10003f60
mov dword [ebp - 4], 0xffffffff
call fcn.100306d0
add esp, 0x50
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x10016049
jmp 0x100163cf
mov ecx, dword [ebp - 0xd8]
add ecx, 0x824
call fcn.1001a7e0
movzx edx, al
test edx, edx
je 0x10016066
jmp 0x100163cf
push 0x74
lea ecx, [ebp - 0xd4]
call fcn.10005e70
lea ecx, [ebp - 0xd4]
call fcn.1003d200
mov dword [ebp - 4], 2
push 0x18
lea ecx, [ebp - 0x30]
call fcn.10005e70
push 0
lea ecx, [ebp - 0x30]
call fcn.100477c0
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xd8]
add ecx, 0x824
push ecx
lea ecx, [ebp - 0xd4]
call fcn.1003d350
movzx edx, al
test edx, edx
jne 0x100160e5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.10047ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1003d310
jmp 0x100163cf
push 0x101d9bc4
lea ecx, [ebp - 0x30]
call fcn.1004a810
mov ecx, eax
call fcn.1004abc0
movzx eax, al
test eax, eax
je 0x10016123
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.10047ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1003d310
jmp 0x100163cf
push str.code
lea ecx, [ebp - 0x30]
call fcn.1004a810
mov ecx, eax
call fcn.10048660
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0xc8
je 0x1001616c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.10047ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1003d310
jmp 0x100163cf
push 0x101d9bd4
lea ecx, [ebp - 0x30]
call fcn.1004a810
mov ecx, eax
call fcn.1004abc0
movzx ecx, al
test ecx, ecx
je 0x100161aa
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.10047ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1003d310
jmp 0x100163cf
push 0x101d9bdc
lea ecx, [ebp - 0x30]
call fcn.1004a810
mov dword [ebp - 0xe0], eax
push 0x101d9be4
mov ecx, dword [ebp - 0xe0]
call fcn.1004a810
mov ecx, eax
call fcn.1004abc0
movzx edx, al
test edx, edx
je 0x100161fe
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.10047ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1003d310
jmp 0x100163cf
push str.data
lea ecx, [ebp - 0x30]
call fcn.1004a810
mov dword [ebp - 0xe4], eax
push str.avatar
mov ecx, dword [ebp - 0xe4]
call fcn.1004a810
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0xe8]
call fcn.100483a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.1001a7e0
movzx ecx, al
test ecx, ecx
je 0x10016278
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.10003ed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.10047ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1003d310
jmp 0x100163cf
lea ecx, [ebp - 0x48]
call fcn.10003fe0
mov byte [ebp - 4], 5
push 0xa
lea edx, [ebp - 0x48]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x100], esp
lea eax, [ebp - 0x60]
push eax
call fcn.1001ae30
call fcn.100305b0
add esp, 0x20
lea ecx, [ebp - 0x48]
call fcn.1001a7e0
movzx ecx, al
test ecx, ecx
je 0x100162f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.10003ed0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.10003ed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.10047ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1003d310
jmp 0x100163cf
push 4
lea ecx, [ebp - 0x14]
call fcn.10005e70
push str.Avatars
mov edx, dword [ebp - 0xd8]
add edx, 0x6a8
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.10019a70
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.100196a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016340
push 0
lea ecx, [ebp - 0x14]
call fcn.100196a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 4
lea ecx, [ebp - 0x18]
call fcn.10005e70
push str._sp_avatar.png
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.10019a70
add esp, 0xc
mov byte [ebp - 4], 7
lea eax, [ebp - 0x48]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x104], esp
lea edx, [ebp - 0x18]
push edx
call fcn.1001a060
call fcn.10027d60
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.10019f40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.10003ed0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.10003ed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.10047ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1003d310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret 8