Function at 0x4999c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5872f9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5deba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x490]
add ecx, 0x590
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041d9b0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x490]
movzx ecx, byte [eax + 0x7e9]
test ecx, ecx
je 0x499a75
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x490]
add eax, 0xa42
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x499a75
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x490]
add edx, 0xa42
push edx
call fcn.00434810
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x488], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041dab0
jmp 0x499dab
push 0x5967e0
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x499a97
push 0x5967ec
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x499ac3
push 0x5967f8
push 0
push 0xcd
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x488], 0
jmp 0x499d53
push 0x596800
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x499ae5
push 0x59680c
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x499b11
push 0x596818
push 0
push 0xc9
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x488], 0
jmp 0x499d53
push 0x596820
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x499b4d
push 0x59682c
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x499b4d
push 0x59683c
lea ecx, [ebp - 0x10]
call fcn.0041e290
push eax
call fcn.00401a40
add esp, 8
test eax, eax
je 0x499b95
push 0x596848
push 0
push 0xca
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48c], eax
push 0x596850
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x490]
add eax, 0x590
push eax
call fcn.00554842
add esp, 8
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x488], 0
jmp 0x499d53
push 0x596860
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x499bd2
push 0x59686c
push 0
push 0xcc
call fcn.0045af00
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x48c], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x488], 0
jmp 0x499d53
push 0x596874
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x499c0f
push 0x596884
push 0
push 0x184
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x488], 0
jmp 0x499d53
push 0x59688c
lea ecx, [ebp - 0x10]
call fcn.0049a800
test eax, eax
jne 0x499c4c
push 0x5968a0
push 0
push 0x1f1
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x488], 0
jmp 0x499d53
push 0x5968a8
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x499c89
push 0x5968b4
push 0
push 0xca
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x488], 0
jmp 0x499d53
push 0x5968bc
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x499cc6
push 0x5968d0
push 0
push 0xca
call fcn.0045af00
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x488], 0
jmp 0x499d53
push 0x5968d8
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x499d1b
push 0x5968e4
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x499d1b
push 0x5968f0
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x499d1b
push 0x5968fc
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
je 0x499d1b
push 0x596908
lea ecx, [ebp - 0x10]
call fcn.0041dbd0
test eax, eax
jne 0x499d2f
mov ecx, dword [ebp - 0x18]
call fcn.00497860
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x488], 1
jmp 0x499d53
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp - 0x10]
push edx
call fcn.0041d990
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
call fcn.00499de0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x488], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x48c], 0
je 0x499d88
mov dword [0x5e1630], 0
push 0x5e1630
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x48c]
call fcn.00427710
mov eax, dword [0x5e1630]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0
push 0
push 0x803
mov ecx, dword [ebp - 0x18]
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