Function at 0x4af480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc0c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x20], bx
push str.mailto:support_internetdownloadmanager.com
mov ecx, 0x6926a4
mov byte [ebp - 4], 1
call fcn.005addd6
lea eax, [ebp - 0x74]
push str.v611bb1
mov ecx, 0xb
mov esi, str.https:__secure.internetdownloadmanager.com_
lea edi, [ebp - 0x74]
push eax
push str._sbuy_idm.html__s
push 0x692d20
rep movsd dword es:[edi], dword [esi]
call fcn.005a6a18
add esp, 0x10
lea ecx, [ebp - 0x74]
push str.v611bb1
push ecx
push str._sbuy1.html__s
push 0x692d1c
call fcn.005a6a18
add esp, 0x10
push str.v611bb1
push str.http:__www.internetdownloadmanager.com___s
push 0x692d18
call fcn.005a6a18
add esp, 0xc
push str.v611bb1
push str.http:__www.internetdownloadmanager.com_welcome.html__s
push 0x692d14
call fcn.005a6a18
add esp, 0xc
push str.v611bb1
push str.http:__www.internetdownloadmanager.com_welcome2.html__s
push 0x692d10
call fcn.005a6a18
add esp, 0xc
mov ecx, 0x6926ac
push str.Internet_20Download_20Manager_20__20very_20cool_20application___
call fcn.005addd6
push str.download_20from_20
mov ecx, 0x6926a8
call fcn.005addd6
push str.mailto:_subjectInternet_20Download_20Manager_20__20very_20cool_20application___bodydownload_20from_20http:__www.internetdownloadmanager.com
mov ecx, 0x6926b0
call fcn.005addd6
mov esi, dword [0x691b38]
mov dword [ebp - 0x18], ebx
cmp esi, ebx
jne 0x4af58f
mov esi, 0x691b3c
mov edx, 0x665ff4
test edx, edx
je 0x4af6a7
cmp esi, ebx
je 0x4af6a7
mov eax, str.idmpldr.ini
test eax, eax
je 0x4af6a7
push ebx
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x38], bx
call fcn.00402800
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x2c], bx
call fcn.00401ee0
push str.idmpldr.ini
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00403af0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00401070
mov edi, dword [ebp - 0x30]
cmp edi, ebx
jne 0x4af603
lea edi, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
call fcn.00401ed0
push eax
call fcn.00591712
push edi
mov ebx, eax
call fcn.00591712
add esi, ebx
lea ebx, [eax + esi + 3]
lea esi, [ebx + ebx]
push esi
call fcn.005a9fe9
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebp - 0x24], edi
je 0x4af681
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x48]
call fcn.00401ed0
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00401ed0
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.00401ed0
push esi
push edi
push eax
mov eax, dword [ebp - 0x24]
push ebx
push eax
call fcn.005916a2
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00591712
add esp, 0x18
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
xor ebx, ebx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4af6b1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4af71a
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4af6c7
lea eax, [ebp - 0x20]
push 0x668508
push eax
call fcn.00592d6f
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4af711
push esi
lea edx, [ebp - 0x94]
push 0x20
push edx
call fcn.00592f7a
add esp, 0xc
test eax, eax
je 0x4af711
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x94]
push eax
push 0x668590
push ecx
call fcn.005931bc
add esp, 0xc
cmp eax, 1
je 0x4af711
mov dword [ebp - 0x18], ebx
push esi
call fcn.00592b88
add esp, 4
push 0x691568
lea ecx, [ebp - 0x14]
call fcn.005adcbb
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4af744
push eax
lea edx, [ebp - 0x14]
push str.c_ld
push edx
call fcn.005a6a18
add esp, 0xc
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x74]
push eax
push str.v611bb1
push ecx
push str._sbuy_idm.html__s_s
push 0x692d20
call fcn.005a6a18
mov edx, dword [ebp - 0x14]
add esp, 0x14
lea eax, [ebp - 0x74]
push edx
push str.v611bb1
push eax
push str._sbuy1.html__s_s
push 0x692d1c
call fcn.005a6a18
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
push str.v611bb1
push str.http:__www.internetdownloadmanager.com___s_s
push 0x692d18
call fcn.005a6a18
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
push str.v611bb1
push str.http:__www.internetdownloadmanager.com_welcome.html__s_s
push 0x692d14
call fcn.005a6a18
mov eax, dword [ebp - 0x14]
add esp, 0x10
push eax
push str.v611bb1
push str.http:__www.internetdownloadmanager.com_welcome2.html__s_s
push 0x692d10
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0x10
sub eax, 0x32
je 0x4af7e5
dec eax
jne 0x4af7f7
push str._a_svfs_2c_
jmp 0x4af7ea
push str._a_dc_
push 0x692d0c
call fcn.005a6a18
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005adc4d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret