Function at 0x4a1ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58790c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5deba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1818]
add ecx, 0x338
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041d9b0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x64], 0
je 0x4a1f29
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x4a1f18
push 1
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x24], eax
jmp 0x4a1f1f
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x1818]
movzx ecx, byte [eax + 0x7e8]
test ecx, ecx
je 0x4a1f8a
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x1818]
add eax, 0x7ea
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a1f8a
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x1818]
add edx, 0x7ea
push edx
call fcn.00434810
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x64], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041dab0
jmp 0x4a21d7
push 0x5978b8
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x4a1fac
push 0x5978c4
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x4a1fcb
push 0x5978d0
push 0
push 0xf6
call fcn.0045af00
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x64], eax
jmp 0x4a2185
push 0x5978d8
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x4a1fed
push 0x5978e4
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x4a200c
push 0x5978f0
push 0
push 0xf7
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x64], eax
jmp 0x4a2185
push 0x5978f8
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x4a2048
push 0x597904
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x4a2048
push 0x597914
lea ecx, [ebp - 0x10]
call fcn.0041e290
push eax
call fcn.00401a40
add esp, 8
test eax, eax
je 0x4a2084
push 0x597920
push 0
push pe_nt_image_headers32
call fcn.0045af00
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x64], eax
push 0x597928
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1818]
add ecx, 0x338
push ecx
call fcn.00554842
add esp, 8
jmp 0x4a2185
push 0x597938
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x4a20b4
push 0x597944
push 0
push 0xcc
call fcn.0045af00
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x64], eax
jmp 0x4a2185
push 0x59794c
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x4a20e4
push 0x59795c
push 0
push 0x183
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x64], eax
jmp 0x4a2185
push 0x597964
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x4a2111
push 0x597978
push 0
push 0x1f0
call fcn.0045af00
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x64], eax
jmp 0x4a2185
push 0x597980
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x4a213e
push 0x59798c
push 0
push 0x216
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x64], eax
jmp 0x4a2185
push 0x597994
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x4a216b
push 0x5979a8
push 0
push 0x266
call fcn.0045af00
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x64], eax
jmp 0x4a2185
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
call fcn.0041d990
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
call fcn.004a2260
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x64], 0
je 0x4a21b4
mov dword [0x5e16d4], 0
push 0x5e16d4
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x64]
call fcn.00427710
mov eax, dword [0x5e16d4]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0
push 0
push 0x803
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00416350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041dab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret