Function at 0x430180
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x483f41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
xor ebp, ebp
call fcn.00401250
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 0x48995c
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], ebp
call fcn.00401ac0
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x60], 1
call fcn.004019b0
add esp, 0xc
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x54], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430208
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x34]
call fcn.004416f0
mov eax, dword [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 4
call fcn.00441783
cmp eax, ebp
je 0x4303c7
push esi
mov edi, edi
lea ecx, [esp + 0x38]
call fcn.004414d1
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], eax
call fcn.004416b7
test eax, eax
jne 0x4303ba
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004419ab
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x64], 5
call fcn.004019b0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4302a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x430397
mov eax, dword [esp + 0x14]
push str.default
push eax
call fcn.0044b987
add esp, 8
test eax, eax
je 0x430307
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004019b0
push str._skin.ini
push eax
lea ecx, [esp + 0x40]
or ebx, 1
push ecx
mov byte [esp + 0x70], 6
mov dword [esp + 0x34], ebx
call fcn.00407d70
mov eax, dword [eax]
add esp, 0x18
push eax
or ebx, 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [esp + 0x13], 1
jne 0x43030c
mov byte [esp + 0x13], 0
test bl, 2
je 0x430336
mov eax, dword [esp + 0x2c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430336
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x58], 5
je 0x430364
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x430397
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
lea edx, [ecx + ebp]
mov ecx, dword [eax + 4]
push edx
push 0
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea edx, [esp + 0x14]
push edx
lea ecx, [edi + 0x14]
call fcn.0042ffe0
inc ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x58], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4303ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x430230
pop esi
lea ecx, [esp + 0x34]
call fcn.00441401
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 3
call fcn.00441714
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430401
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430427
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8