Function at 0x46cb50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500a96
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x53e180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
push ecx
call fcn.00430d30
add esp, 8
movzx edx, al
test edx, edx
je 0x46ce40
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
call fcn.00406330
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x364], 0
je 0x46cc26
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x364]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0
je 0x46cc0c
push 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x90]
mov edx, dword [eax]
call edx
mov dword [ebp - 0xa4], eax
jmp 0x46cc16
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x364], 0
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
push ecx
lea ecx, [ebp - 0x28]
call fcn.004034f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402ba0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46cd31
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x20]
call fcn.0040bf40
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x70]
push edx
call fcn.0041bbd0
add esp, 4
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0043adc0
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0043ad80
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x28]
call fcn.00406360
lea ecx, [ebp - 0x40]
call fcn.00402a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00402a80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00402a80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00402a80
lea ecx, [ebp - 0x28]
call fcn.00402ba0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46cd58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a80
jmp 0x46ce40
push 0x10
call fcn.00434030
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x94], 0
je 0x46cd93
push 0
lea ecx, [ebp - 0x28]
call fcn.00402ba0
push eax
mov ecx, dword [ebp - 0x94]
call fcn.0046ce90
mov dword [ebp - 0x98], eax
jmp 0x46cd9d
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0xc4]
mov dword [ecx + 0x364], edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x364]
call fcn.00433e60
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x46ce31
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 0x351]
test edx, edx
je 0x46cdfc
mov dword [ebp - 0x9c], 1
jmp 0x46ce06
mov dword [ebp - 0x9c], 3
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + 0x364]
call fcn.0046cef0
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c662b
mov esp, ebp
pop ebp
ret 4