Function at 0x4c0270
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x600ad2
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea eax, [esp + 0x80]
xor ebx, ebx
push eax
mov dword [esp + 0xfc], ebx
call fcn.0050f180
push edi
mov byte [esp + 0xfc], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c0386
mov edi, dword [esp + 0x100]
lea ecx, [esp + 0x44]
push ecx
call fcn.0050f180
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xfc], 2
push str.Default
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.0050f980
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x4c0367
cmp ebp, dword [esp + 0x24]
je 0x4c0367
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea edi, [esp + 0x18]
call fcn.0040ab90
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x104]
push esi
mov ecx, edi
call fcn.004c39a0
cmp eax, ebx
jne 0x4c0362
mov eax, esi
mov ebx, edi
call fcn.004c37c0
xor ebx, ebx
jmp 0x4c0323
mov byte [eax + 4], bl
jmp 0x4c0323
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xfc], 1
call fcn.0050f250
lea edx, [esp + 0x80]
push edx
jmp 0x4c0650
push 0x6291fc
push str.Properties
lea ecx, [esp + 0x88]
push ecx
call fcn.0050fb90
cmp eax, ebx
jne 0x4c046a
or ebp, 0xffffffff
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
lea edx, [esp + 0x44]
push edx
lea eax, [ebp + 2]
mov ecx, edi
mov byte [esp + 0xfc], 3
call fcn.0050e530
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x48]
call fcn.0050e200
test eax, eax
je 0x4c0429
lea ecx, [ecx]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x104]
push edi
mov ecx, esi
call fcn.004c39a0
cmp eax, ebx
jne 0x4c0414
mov eax, edi
mov ebx, esi
call fcn.004c37c0
xor ebx, ebx
jmp 0x4c0417
mov byte [eax + 4], bl
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x48]
call fcn.0050e200
test eax, eax
jne 0x4c03f0
lea esi, [esp + 0x5c]
call fcn.0050df50
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0050df50
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0xfc], bl
call fcn.0050f250
mov dword [esp + 0xf8], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x4c0669
lea ecx, [esp + 0x1c]
push ecx
push str.Custom
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.0050f980
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x4c04d9
cmp ebp, dword [esp + 0x24]
je 0x4c04d9
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea edi, [esp + 0x18]
call fcn.0040ab90
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x104]
push esi
mov ecx, edi
call fcn.004c39a0
cmp eax, ebx
jne 0x4c04d4
mov eax, esi
mov ebx, edi
call fcn.004c37c0
xor ebx, ebx
jmp 0x4c0495
mov byte [eax + 4], bl
jmp 0x4c0495
lea eax, [esp + 0x1c]
push eax
push str.Default
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.0050f980
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xa
mov dword [esp + 0x40], ebx
mov byte [esp + 0xf8], 4
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x4c0580
cmp ebp, dword [esp + 0x24]
je 0x4c0580
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea edi, [esp + 0x18]
call fcn.0040ab90
mov esi, dword [esp + 0x18]
push 4
push str.__D:
push esi
call fcn.005d5260
add esp, 0xc
test eax, eax
jne 0x4c0528
lea edi, [esi + 8]
push edi
lea ecx, [esp + 0x30]
call fcn.004c39a0
cmp eax, ebx
jne 0x4c057b
mov eax, edi
lea ebx, [esp + 0x2c]
call fcn.0045f600
xor ebx, ebx
jmp 0x4c0528
mov dword [eax + 4], ebx
jmp 0x4c0528
mov edi, dword [esp + 0x100]
lea edx, [esp + 0xb8]
push edx
call fcn.0050f180
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xfc], 5
push str.Default
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.0050f980
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x4c0619
cmp ebp, dword [esp + 0x24]
je 0x4c0619
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea edi, [esp + 0x18]
call fcn.0040ab90
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x30]
call fcn.004c39a0
test eax, eax
jne 0x4c05c7
mov edi, dword [esp + 0x104]
push esi
mov ecx, edi
call fcn.004c39a0
cmp eax, ebx
jne 0x4c0614
mov eax, esi
mov ebx, edi
call fcn.004c37c0
xor ebx, ebx
jmp 0x4c05c7
mov byte [eax + 4], bl
jmp 0x4c05c7
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0xfc], 4
call fcn.0050f250
lea edi, [esp + 0x2c]
call fcn.004c6cd0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4c0648
push eax
call fcn.005d27e0
add esp, 4
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xfc], bl
call fcn.0050f250
or ebp, 0xffffffff
lea eax, [esi - 0x10]
mov dword [esp + 0xf8], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4c067f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret 8