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

Disassembly:
push 0xffffffffffffffff
push 0x59cbbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x650
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 0x90]
mov dword [esp + 0x48], ebp
cmp eax, edi
jne 0x42b7e7
lea eax, [ebp + 0x94]
lea ecx, [esp + 0x260]
lea edx, [esp + 0x460]
push ecx
push edx
lea ecx, [esp + 0x68]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
call fcn.0056e216
xor eax, eax
add esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
mov word [esp + 0x14], di
mov ecx, 0x639028
mov dword [esp + 0x668], edi
test ecx, ecx
je 0x42b944
lea edx, [esp + 0x4c]
test edx, edx
je 0x42b944
lea ecx, [esp + 0x60]
test ecx, ecx
je 0x42b944
push 0x639028
lea ecx, [esp + 0x20]
call fcn.004039e0
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x66c], 1
call fcn.004039b0
lea eax, [esp + 0x60]
mov bl, 2
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x66c], bl
call fcn.004039b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x668], 3
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.00403a60
push eax
call fcn.0056ca2e
add esp, 4
lea ecx, [esp + 0x34]
mov ebp, eax
call fcn.00403a60
push eax
call fcn.0056ca2e
add esi, ebp
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.00584a5c
add esp, 8
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x42b90a
lea ecx, [esp + 0x28]
call fcn.00403a60
push eax
lea ecx, [esp + 0x38]
call fcn.00403a60
push eax
lea ecx, [esp + 0x24]
call fcn.00403a60
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.0056ca74
mov eax, dword [esp + 0x20]
push eax
call fcn.0056ca2e
add esp, 0x14
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x668], bl
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x668], 1
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], 0
call fcn.00401070
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x48]
cmp dword [0x663668], edi
je 0x42b964
cmp eax, edi
jne 0x42b954
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b97f
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x42b96c
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00465670
add esp, 8
test eax, eax
jne 0x42bc53
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov word [esp + 0x20], di
mov eax, dword [esp + 0x10]
mov byte [esp + 0x668], 4
cmp eax, edi
jne 0x42b9a0
lea eax, [esp + 0x14]
mov esi, dword [0x6643c0]
cmp esi, edi
je 0x42ba5e
cmp eax, edi
je 0x42ba5e
push eax
lea ecx, [esp + 0x58]
call fcn.004039b0
mov bl, 5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], bl
call fcn.00401070
push esi
lea ecx, [esp + 0x2c]
call fcn.004039e0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x54]
mov byte [esp + 0x668], 6
call fcn.00403a60
push eax
call fcn.0056ca2e
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.00584a5c
add esp, 8
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x42ba3d
lea ecx, [esp + 0x54]
call fcn.00403a60
push eax
lea ecx, [esp + 0x2c]
call fcn.00403a60
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.0056ca74
mov eax, dword [esp + 0x28]
push eax
call fcn.0056ca2e
add esp, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x668], bl
call fcn.00401070
lea ecx, [esp + 0x54]
mov byte [esp + 0x668], 4
call fcn.00401070
push edi
push str.Internet_Download_Manager
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
mov word [esp + 0x40], di
call fcn.00402600
mov eax, dword [esp + 0x34]
mov byte [esp + 0x668], 7
cmp eax, edi
mov ecx, eax
jne 0x42ba90
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x42ba9c
lea eax, [esp + 0x20]
push 4
push ecx
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x42bd10
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x42babf
lea eax, [esp + 0x14]
push eax
call fcn.0056ca2e
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, edi
mov edx, ecx
jne 0x42bad6
lea edx, [esp + 0x14]
cmp word [edx + eax*2 - 2], 0x5c
je 0x42bb7d
mov edx, 0x639030
test edx, edx
je 0x42bb7d
push edx
call fcn.0056ca2e
add esp, 4
test eax, eax
je 0x42bb79
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x42bb11
push eax
call fcn.0056ca2e
add esp, 4
mov esi, eax
jmp 0x42bb13
xor esi, esi
push 0x639030
call fcn.0056ca2e
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.00584a5c
mov esi, eax
add esp, 8
cmp esi, edi
je 0x42bb79
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x42bb51
push eax
push esi
call fcn.0056ca09
push 0x639030
push esi
call fcn.0056c9df
add esp, 0x10
jmp 0x42bb5f
push 0x639030
push esi
call fcn.0056ca09
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00401070
push esi
mov dword [esp + 0x14], esi
call fcn.0056ca2e
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
cmp ecx, edi
jne 0x42bb85
lea ecx, [esp + 0x14]
add ecx, 6
push 0x5c
push ecx
call fcn.0056ca4b
mov esi, eax
add esp, 8
cmp esi, edi
je 0x42bc31
mov bl, 8
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x42bbab
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.004039b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x668], bl
call fcn.00403a60
mov ebp, esi
lea ecx, [esp + 0x28]
sub ebp, eax
sar ebp, 1
call fcn.00403a60
push 1
lea ecx, [esp + 0x2c]
mov word [eax + ebp*2], di
call fcn.00403a60
push eax
call fcn.00465670
add esp, 8
test eax, eax
jne 0x42bc08
push 1
lea ecx, [esp + 0x2c]
call fcn.00403a60
push eax
call fcn.00465850
add esp, 8
test eax, eax
je 0x42bc85
add esi, 2
push 0x5c
push esi
call fcn.0056ca4b
add esp, 8
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x668], 7
call fcn.00401070
cmp esi, edi
jne 0x42bb9f
lea ecx, [esp + 0x34]
mov byte [esp + 0x668], 4
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], 0
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x668], 0xffffffff
call fcn.00401070
mov eax, 1
mov ecx, dword [esp + 0x660]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x65c
ret
mov ecx, dword [0x65ec1c]
mov dword [esp + 0x40], ecx
push edi
lea edx, [esp + 0x48]
push edi
push edx
push 0x400
mov byte [esp + 0x678], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x44]
mov ecx, dword [0x6643bc]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.0058148b
mov eax, dword [esp + 0x50]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x40]
push 0x30
push str.Internet_Download_Manager
push ecx
mov ecx, dword [esp + 0x54]
call fcn.005866b4
lea ecx, [esp + 0x40]
mov byte [esp + 0x668], bl
call fcn.005886c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x668], 7
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x668], 4
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], 0
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x668], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x42bc6c