Function at 0x58d220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe303
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x9c], ebx
mov edi, ecx
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push edi
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc570
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.005e1200
push 1
xorps xmm0, xmm0
mov byte [ebp - 0x95], al
push ecx
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
call fcn.005dc0b0
push eax
lea ecx, [ebp - 0x38]
call fcn.005dc570
cmp byte [ebp - 0x95], 0
mov byte [ebp - 4], 1
jne 0x58d5eb
push 0x6243cc
lea ecx, [ebp - 0x38]
call fcn.005dc4c0
test al, al
jne 0x58d733
push str..com
lea ecx, [ebp - 0x38]
call fcn.005dc4c0
test al, al
jne 0x58d733
push str..dll
lea ecx, [ebp - 0x38]
call fcn.005dc4c0
test al, al
jne 0x58d733
push str..ocx
lea ecx, [ebp - 0x38]
call fcn.005dc4c0
test al, al
jne 0x58d733
push str..scr
lea ecx, [ebp - 0x38]
call fcn.005dc4c0
test al, al
jne 0x58d733
push str..ico
lea ecx, [ebp - 0x38]
call fcn.005dc4c0
test al, al
jne 0x58d733
push 0x630518
lea ecx, [ebp - 0x38]
call fcn.005dc4c0
test al, al
je 0x58d547
push 0x4c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00420090
add esp, 0xc
lea ecx, [ebp - 0x1c]
push 0
call fcn.005dc190
push eax
lea ecx, [ebp - 0x88]
call fcn.005e9480
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.005e92e0
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc260
mov ecx, eax
call fcn.005dbc20
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x58d42b
push eax
push 1
push 1
push eax
push str.C:Program_Files__x86__
lea ecx, [ebp - 0x1c]
call fcn.005daa70
cmp eax, 1
jne 0x58d42b
sub esp, 8
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x2c], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x16
call fcn.005dc440
push eax
push str.C:Program_Files
lea ecx, [ebp - 0x2c]
call fcn.005dc520
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.005dc190
push eax
call esi
test eax, eax
je 0x58d41f
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc4e0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.005dc430
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call esi
test eax, eax
je 0x58d463
test ebx, ebx
je 0x58d443
mov eax, dword [ebp - 0x44]
mov dword [ebx], eax
push 0x800
push edi
lea ecx, [ebp - 0x1c]
call fcn.005d8a30
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.005e9080
jmp 0x58d860
push 0
push 1
push ecx
lea ecx, [ebp - 0x88]
call fcn.005e9390
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc260
mov ecx, eax
call fcn.005dbc20
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call esi
test eax, eax
jne 0x58d50f
push eax
push 1
push 1
push eax
push str.C:Program_Files__x86__
lea ecx, [ebp - 0x1c]
call fcn.005daa70
cmp eax, 1
jne 0x58d50f
sub esp, 8
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x2c], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x16
call fcn.005dc440
push eax
push str.C:Program_Files
lea ecx, [ebp - 0x2c]
call fcn.005dc520
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.005dc190
push eax
call esi
test eax, eax
je 0x58d503
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc4e0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.005dc430
test ebx, ebx
je 0x58d519
mov dword [ebx], 0
push 0x800
push edi
lea ecx, [ebp - 0x1c]
call fcn.005d8a30
push 0x800
mov edx, ebx
mov ecx, edi
call fcn.0058d220
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.005e9080
jmp 0x58d860
push str..url
lea ecx, [ebp - 0x38]
call fcn.005dc480
test al, al
je 0x58d5eb
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x800
push eax
push 0
push 0
push 0x800
lea ecx, [ebp - 0x1c]
call fcn.005db9a0
push eax
push 0
lea ecx, [ebp - 0x38]
call fcn.005dc190
mov esi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
push eax
push 0xf
push 0
call esi
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x58d5b2
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
test ebx, ebx
je 0x58d850
mov dword [ebx], eax
jmp 0x58d850
lea eax, [ebp - 0x20]
push eax
call fcn.005dc190
push eax
push 0
lea ecx, [ebp - 0x38]
call fcn.005dc190
push eax
push 2
push 0x80
call esi
test eax, eax
jne 0x58d5eb
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x58d850
push 1
push edi
lea ecx, [ebp - 0x1c]
call fcn.005dc260
cmp byte [eax + 8], 0
je 0x58d7e7
xor bl, bl
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
push 1
mov byte [ebp - 4], 7
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
call fcn.005dbfc0
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc570
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.005dbed0
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x58d748
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x58d748
mov ecx, dword [ebp - 0x94]
lea esi, [ebp - 0x8c]
push esi
push 0x6ed824
push 0
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x58d73c
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
push 0
mov esi, dword [eax]
lea eax, [ebp - 0x20]
push eax
push 0
call fcn.005dc190
push eax
push 0
push 0
push dword [ebp - 0x8c]
call dword [esi + 0xc]
test eax, eax
jne 0x58d73c
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x90]
push edx
push 0
push 0x6ed7d0
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 1
push 0
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x58d73c
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x90]
push edx
push dword [ebp - 0x9c]
mov ecx, dword [eax]
push 0x800
push edi
push 3
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x58d73a
test dword [ebp - 0x3c], 8
jne 0x58d73a
mov bl, 1
jmp 0x58d73c
mov bl, 1
jmp 0x58d860
xor bl, bl
push dword [ebp - 0xa0]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x58d756
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x2c]
call fcn.005dc430
test bl, bl
je 0x58d7a7
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x58d776
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x58d78a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x58d860
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x58d860
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x58d7bb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x58d7cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x58d7e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
cmp byte [ebp - 0x95], 0
jne 0x58d820
lea ecx, [ebp - 0x38]
call fcn.005dbeb0
test al, al
jne 0x58d820
push 0
push 0
push 0x400
lea ecx, [ebp - 0x1c]
call fcn.005db9a0
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_FindExecutableW]
cmp eax, 0x20
jg 0x58d850
xor bl, bl
jmp 0x58d860
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Shell32.dll
push 0
push 0
push 0x25
lea ecx, [ebp - 0x1c]
call fcn.005dbbc0
mov ecx, eax
call fcn.005da780
push 0x800
push edi
lea ecx, [ebp - 0x1c]
call fcn.005d8a30
mov bl, al
lea ecx, [ebp - 0x38]
call fcn.005dc430
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4