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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov eax, dword [ecx + 0xc]
test eax, eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
je 0x10018f92
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0x1c]
push 0
push edx
mov edx, dword [ebp + 0x10]
push 0
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ecx + 8]
test eax, eax
jne 0x10019818
mov dword [ecx], 0
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov dword [ebp - 4], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [ebp - 4], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [ebp - 4], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [ebp - 4], 3
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [ebp - 4], 4
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [esi - 0xc]
test eax, eax
mov bl, 5
mov byte [ebp - 4], bl
jne 0x100190f7
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
jge 0x10019065
push 0x104
lea ecx, [ebp - 0x24]
call fcn.100029f0
mov esi, dword [ebp - 0x24]
mov eax, dword [0x10098990]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test esi, esi
jne 0x1001907f
xor eax, eax
jmp 0x1001908f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019084
sub eax, edx
js 0x100190ed
cmp eax, dword [esi - 8]
jg 0x100190ed
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.10069f52
add esp, 8
test eax, eax
jne 0x100190af
or eax, 0xffffffff
jmp 0x100190b1
sub eax, esi
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x24]
call fcn.10008ae0
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.10004aa0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10019103
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x10019103
push 0x80070057
call fcn.10001330
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.10004aa0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov edx, dword [0x10096d68]
mov eax, dword [edx + 0x18]
mov edi, dword [ebp - 0x20]
push ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
push str._s_theme_smenu_s.txt
push ecx
call fcn.10004e20
mov edx, dword [esi + 4]
push edx
push edi
lea eax, [ebp - 0x18]
push str._smenu_s.txt
push eax
call fcn.10004e20
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx - 4]
mov eax, dword [edx - 8]
mov ecx, 1
add esp, 0x24
sub ecx, ebx
dec eax
or eax, ecx
jge 0x1001915e
push 1
lea ecx, [ebp - 0x18]
call fcn.100029f0
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
call esi
cmp eax, 0xffffffff
jne 0x10019288
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
dec eax
or eax, ecx
jge 0x10019192
push 1
lea ecx, [ebp - 0x1c]
call fcn.100029f0
mov edx, dword [ebp - 0x1c]
push edx
call esi
cmp eax, 0xffffffff
jne 0x10019282
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10004aa0
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push str._smenu
push eax
call fcn.10004e20
mov esi, dword [ebp - 0x28]
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x48], edx
push ebx
mov dword [ecx + 8], 1
mov ecx, dword [edi + 4]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
push 0x442
push ecx
mov dword [ebp - 0x58], 0x20
mov dword [ebp - 0x54], 6
mov dword [ebp - 0x3c], edx
mov byte [ebp - 0x48], dl
mov dword [ebp - 0x40], 0x10082580
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1c]
push 0x1388
push 1
push 0
push ecx
push eax
call fcn.10021df0
mov ecx, dword [ebp + 8]
add esp, 0x14
push 1
add ecx, 8
mov byte [ebp - 0x48], 4
call fcn.10004750
lea edx, [ebp - 0x58]
push edx
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
push 0x442
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x2c]
lea eax, [esi - 0x10]
mov dword [ecx + 8], 0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10019766
lea eax, [ebp - 0x1c]
push eax
jmp 0x1001928c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10004aa0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
xor esi, esi
cmp eax, esi
je 0x100192a9
push eax
call fcn.10012190
add esp, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
dec eax
or eax, ecx
jge 0x100192cb
push 1
lea ecx, [ebp - 0x14]
call fcn.100029f0
mov edx, dword [ebp - 0x14]
push 0x1008257c
push edx
call fcn.1006ade8
push 0x44
mov dword [ebp - 0x5c], eax
call fcn.10067970
add esp, 0xc
cmp eax, esi
je 0x10019308
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], esi
mov byte [eax + 4], 0
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], esi
mov byte [eax + 0x20], 0
mov dword [eax + 0x3c], esi
mov dword [eax + 0x40], esi
jmp 0x1001930a
xor eax, eax
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.10018ee0
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x5c]
push esi
lea ecx, [ebp - 0x2a4]
push 0xff
push ecx
call fcn.1006ad06
add esp, 0xc
test eax, eax
je 0x100194a0
lea edx, [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x38]
call fcn.10005e50
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.1000d0f0
mov ecx, eax
call fcn.1000cd40
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x10019473
push 0x44
call fcn.10067970
add esp, 4
test eax, eax
je 0x100193b6
xor ecx, ecx
mov edx, 0xf
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov byte [eax + 4], cl
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x20], cl
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov esi, eax
jmp 0x100193b8
xor esi, esi
push esi
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
mov dword [ebp - 0x34], esi
call fcn.10013080
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
add edx, 0xec54
mov dword [esi + 0x38], edx
mov edx, dword [ecx]
add esp, 0xc
inc edx
test edi, edi
mov dword [ecx], edx
jne 0x100193ea
xor ecx, ecx
jmp 0x100193f1
mov ecx, ebx
sub ecx, edi
sar ecx, 2
dec ecx
cmp eax, ecx
jg 0x10019470
test edi, edi
jne 0x100193fe
xor ecx, ecx
jmp 0x10019405
mov ecx, ebx
sub ecx, edi
sar ecx, 2
dec ecx
cmp eax, ecx
jne 0x10019430
mov eax, dword [ebx - 4]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 1
mov dword [eax + 0x40], esi
call fcn.10018ee0
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
jmp 0x10019470
test edi, edi
jne 0x10019438
xor ecx, ecx
jmp 0x1001943f
mov ecx, ebx
sub ecx, edi
sar ecx, 2
add ecx, 0xfffffffe
cmp eax, ecx
jge 0x1001945d
test edi, edi
je 0x10019434
mov ecx, ebx
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x10019430
sub ebx, 4
mov dword [ebp - 0x40], ebx
jmp 0x10019430
mov edx, dword [ebx - 4]
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x3c], eax
mov dword [ebx - 4], eax
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10019335
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x10019335
push esi
call fcn.1006ac24
add esp, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40]
mov ebx, dword [ebp + 8]
mov dword [edi + 4], edx
mov esi, dword [eax]
test esi, esi
mov dword [ebp - 4], 7
je 0x10019518
cmp dword [esi + 0x34], 0x10
jb 0x100194d9
mov eax, dword [esi + 0x20]
push eax
call fcn.10069196
add esp, 4
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
cmp dword [esi + 0x18], 0x10
jb 0x100194fd
mov eax, dword [esi + 4]
push eax
call fcn.10069196
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push esi
mov byte [esi + 4], 0
call fcn.10069196
add esp, 4
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
push esi
mov dword [edi + 0xc], eax
call fcn.10012ef0
mov eax, dword [ebp - 0x30]
add esp, 8
test eax, eax
je 0x10019663
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
je 0x10019663
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
push 0
push edx
mov edx, dword [edi + 0xc]
push 0
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
add ebx, 4
lea ecx, [edi + 0x10]
push ebx
call fcn.10004aa0
mov eax, dword [ebp - 0x44]
push eax
call fcn.10069196
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100195a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100195c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100195e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10019606
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10019627
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001964b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push str._smenu
push ecx
call fcn.10004e20
mov edx, dword [ebp - 0x28]
add esp, 0xc
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x7c]
push ecx
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x6c], al
mov eax, dword [ebp + 0xc]
push edx
mov dword [edi + 8], 1
mov ecx, dword [eax + 4]
push 0x442
push ecx
mov dword [ebp - 0x7c], 0x20
mov dword [ebp - 0x78], 6
mov dword [ebp - 0x64], 0x10082580
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x1c]
push 0x1388
push 1
push 0
push edx
push eax
call fcn.10021df0
mov eax, dword [ebx + 8]
lea esi, [ebx + 8]
sub eax, 0x10
mov byte [ebp - 0x6c], 4
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, 1
add esp, 0x14
sub ecx, edx
dec eax
or eax, ecx
jge 0x10019712
push 1
mov ecx, esi
call fcn.100029f0
mov eax, dword [esi]
mov edx, dword [ebp + 0x20]
lea ecx, [ebp - 0x7c]
push ecx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push edx
push 0x442
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + 0xc]
xor esi, esi
push edx
mov dword [edi + 8], esi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ebp - 0x44]
push eax
mov dword [edi + 0xc], esi
call fcn.10069196
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10019770
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10019791
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100197b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100197d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100197f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10019818
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c