Function at 0x426940
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x45d520]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x33c], ecx
lea ecx, [ebp - 0x30]
call fcn.00403dc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.00403dc0
mov byte [ebp - 4], 1
cmp dword [0x45ed00], 0
jne 0x4269cb
mov dword [ebp - 0x1dc], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.00401940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401940
mov eax, dword [ebp - 0x1dc]
jmp 0x42723e
push 0x4522db
lea ecx, [ebp - 0x1b4]
call fcn.004018c0
mov byte [ebp - 4], 2
push 0x45efdc
lea ecx, [ebp - 0x4c]
call fcn.00401900
mov byte [ebp - 4], 3
push 0
push 0x452680
mov ecx, 0x45efdc
call fcn.00422340
cmp eax, 0xffffffff
je 0x426a9c
push 0xffffffffffffffff
push 0
push 0x452684
mov ecx, 0x45efdc
call fcn.00422340
push eax
lea eax, [ebp - 0x1f8]
push eax
mov ecx, 0x45efdc
call fcn.00403e70
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x344], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x344]
lea ecx, [ebp - 0x214]
call fcn.00403050
mov dword [ebp - 0x348], eax
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0x34c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x1b4]
call fcn.00405740
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x214]
call fcn.00401940
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1f8]
call fcn.00401940
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x218], esp
lea edx, [ebp - 0x1b4]
push edx
push 0x452688
push ecx
call fcn.004053f0
add esp, 0xc
mov dword [ebp - 0x350], eax
push 0x45ed04
lea eax, [ebp - 0x234]
push eax
call fcn.004264d0
add esp, 0x24
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x354]
mov dword [ebp - 0x358], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x358]
push edx
lea ecx, [ebp - 0x30]
call fcn.00405740
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.00401940
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x238], esp
lea ecx, [ebp - 0x1b4]
push ecx
push 0x45268c
push eax
call fcn.004053f0
add esp, 0xc
mov dword [ebp - 0x35c], eax
push 0x45ed04
lea edx, [ebp - 0x254]
push edx
call fcn.004264d0
add esp, 0x24
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x364]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00405740
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x254]
call fcn.00401940
push 0x4522df
lea edx, [ebp - 0x30]
push edx
call fcn.00404150
add esp, 8
movzx eax, al
test eax, eax
jne 0x426bb2
push 0x4522e3
lea ecx, [ebp - 0x18c]
push ecx
call fcn.00404150
add esp, 8
movzx edx, al
test edx, edx
je 0x426c7b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x258], esp
push 0x452694
call fcn.004018c0
mov dword [ebp - 0x368], eax
push 0x45ed04
lea eax, [ebp - 0x274]
push eax
call fcn.004264d0
add esp, 0x24
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x370], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x370]
push edx
lea ecx, [ebp - 0x30]
call fcn.00405740
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.00401940
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x278], esp
push str.NAME
call fcn.004018c0
mov dword [ebp - 0x374], eax
push 0x45ed04
lea eax, [ebp - 0x294]
push eax
call fcn.004264d0
add esp, 0x24
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0x37c], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x37c]
push edx
lea ecx, [ebp - 0x18c]
call fcn.00405740
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x294]
call fcn.00401940
lea ecx, [ebp - 0x30]
call fcn.00401960
push eax
push str.ICON_URL___s_n
call fcn.00401010
add esp, 8
lea ecx, [ebp - 0x18c]
call fcn.00401960
push eax
push str.ICON_NAME___s_n
call fcn.00401010
add esp, 8
push 0x4522e7
lea eax, [ebp - 0x30]
push eax
call fcn.00404150
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x426cdd
push 0x4522eb
lea edx, [ebp - 0x18c]
push edx
call fcn.00404150
add esp, 8
movzx eax, al
test eax, eax
je 0x426d2b
mov dword [ebp - 0x298], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00401940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b4]
call fcn.00401940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.00401940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401940
mov eax, dword [ebp - 0x298]
jmp 0x42723e
lea ecx, [ebp - 0x1b4]
push ecx
push str.Icon
lea edx, [ebp - 0x170]
push edx
call fcn.004053f0
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
call fcn.00432e80
mov byte [ebp - 4], 0xb
push 0xf003f
mov ecx, 0x45f154
call fcn.00401960
push eax
push closesocket
lea ecx, [ebp - 0x198]
call fcn.00423d80
lea ecx, [ebp - 0x170]
call fcn.00401960
push eax
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x198]
call fcn.00423dd0
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
jne 0x426e1d
lea ecx, [ebp - 0x198]
call fcn.00423d40
mov dword [ebp - 0x29c], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
call fcn.00423d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x170]
call fcn.00401940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00401940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b4]
call fcn.00401940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.00401940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401940
mov eax, dword [ebp - 0x29c]
jmp 0x42723e
push 0
push 0x19
lea ecx, [ebp - 0x154]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x426eb6
lea ecx, [ebp - 0x198]
call fcn.00423d40
mov dword [ebp - 0x2a0], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
call fcn.00423d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x170]
call fcn.00401940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00401940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b4]
call fcn.00401940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.00401940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401940
mov eax, dword [ebp - 0x2a0]
jmp 0x42723e
push 0x4526c8
lea edx, [ebp - 0x154]
push edx
call fcn.00436000
add esp, 8
lea ecx, [ebp - 0x18c]
call fcn.00401960
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00436000
add esp, 8
push str..url
lea ecx, [ebp - 0x154]
push ecx
call fcn.00436000
add esp, 8
lea edx, [ebp - 0x154]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x426f76
mov dword [ebp - 0x2a4], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
call fcn.00423d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x170]
call fcn.00401940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00401940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b4]
call fcn.00401940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.00401940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401940
mov eax, dword [ebp - 0x2a4]
jmp 0x42723e
push 4
push 0x4526d4
push 0x4526dc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 6
jne 0x4271a4
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 1
push 0x45270c
lea ecx, [ebp - 0x2c0]
call fcn.004018c0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x33c]
add eax, 0x4c
push eax
lea ecx, [ebp - 0x2c0]
push ecx
mov edx, dword [ebp - 0x33c]
add edx, 0x6d0
push edx
lea eax, [ebp - 0x2dc]
push eax
call fcn.0041d1d0
add esp, 0xc
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x384], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x384]
push edx
lea eax, [ebp - 0x1d8]
push eax
call fcn.00409f80
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2dc]
call fcn.00401940
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c0]
call fcn.00401940
push 0x4522ef
lea ecx, [ebp - 0x2f8]
call fcn.004018c0
mov byte [ebp - 4], 0x11
push 0x4522f2
lea ecx, [ebp - 0x314]
call fcn.004018c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x330]
call fcn.004018c0
mov byte [ebp - 4], 0x13
push 5
push 0
push 0
lea edx, [ebp - 0x1d8]
push edx
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x330]
lea ecx, [ebp - 0x30]
call fcn.004265d0
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x330]
call fcn.00401940
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x314]
call fcn.00401940
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2f8]
call fcn.00401940
mov edx, dword [ebp - 0x1bc]
push edx
lea ecx, [ebp - 0x1d8]
call fcn.00401960
push eax
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401960
push eax
push str.ShortcutLink
call fcn.00401010
add esp, 0x14
cmp dword [ebp - 0x1bc], 0
jne 0x427193
lea ecx, [ebp - 0x198]
call fcn.00423d40
mov dword [ebp - 0x334], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1d8]
call fcn.00401940
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
call fcn.00423d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x170]
call fcn.00401940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00401940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b4]
call fcn.00401940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.00401940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401940
mov eax, dword [ebp - 0x334]
jmp 0x42723e
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1d8]
call fcn.00401940
jmp 0x4271ae
mov dword [ebp - 0x1b8], 0
lea ecx, [ebp - 0x170]
call fcn.00401960
push eax
mov ecx, dword [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x198]
call fcn.00423e60
lea ecx, [ebp - 0x198]
call fcn.00423d40
mov dword [ebp - 0x338], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
call fcn.00423d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x170]
call fcn.00401940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00401940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b4]
call fcn.00401940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.00401940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401940
mov eax, dword [ebp - 0x338]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00433b5e
mov esp, ebp
pop ebp
ret 4