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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x280]
mov dword [ebp - 0x18], esi
cmp eax, 2
mov dword [ebp - 4], edi
jne 0x4da9eb
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.004d9b80
cmp dword [0x663668], edi
je 0x4da67f
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x4da673
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4da69c
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x4da689
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00465670
add esp, 8
cmp eax, edi
jne 0x4da9df
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], di
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, edi
jne 0x4da6b4
lea eax, [ebp - 0x28]
mov esi, dword [0x6643c0]
cmp esi, edi
je 0x4da757
cmp eax, edi
je 0x4da757
push eax
lea ecx, [ebp - 0x44]
call fcn.004039b0
mov bl, 3
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00401070
push esi
lea ecx, [ebp - 0x68]
call fcn.004039e0
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 4
cmp eax, edi
jne 0x4da6f7
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x60]
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 [ebp - 0x38], eax
je 0x4da740
lea ecx, [ebp - 0x44]
call fcn.00403a60
push eax
lea ecx, [ebp - 0x68]
call fcn.00403a60
mov edx, dword [ebp - 0x38]
push eax
push edx
call fcn.0056ca74
mov eax, dword [ebp - 0x38]
push eax
call fcn.0056ca2e
add esp, 0x10
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401070
mov ecx, dword [0x663fac]
push edi
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], edi
mov word [ebp - 0x4c], di
call fcn.00402600
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 5
cmp ecx, edi
jne 0x4da77f
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x4da789
lea eax, [ebp - 0x34]
push 4
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, 6
cmp eax, ebx
jne 0x4da96c
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x4da7ab
lea eax, [ebp - 0x28]
push eax
call fcn.0056ca2e
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, edi
mov edx, ecx
jne 0x4da7c0
lea edx, [ebp - 0x28]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4da861
mov edx, 0x639030
test edx, edx
je 0x4da861
push edx
call fcn.0056ca2e
add esp, 4
test eax, eax
je 0x4da85e
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x4da7fa
push eax
call fcn.0056ca2e
add esp, 4
mov esi, eax
jmp 0x4da7fc
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 0x4da85e
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x4da839
push eax
push esi
call fcn.0056ca09
push 0x639030
push esi
call fcn.0056c9df
add esp, 0x10
jmp 0x4da847
push 0x639030
push esi
call fcn.0056ca09
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00401070
push esi
mov dword [ebp - 0x2c], esi
call fcn.0056ca2e
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, edi
jne 0x4da868
lea ecx, [ebp - 0x28]
add ecx, 6
push 0x5c
push ecx
call fcn.0056ca4b
add esp, 8
mov esi, eax
cmp esi, edi
je 0x4da9c4
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x4da88a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x40], di
call fcn.00402e10
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], bl
cmp ecx, edi
jne 0x4da8aa
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x4da8b4
lea eax, [ebp - 0x28]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], di
mov eax, dword [ebp - 0x44]
cmp eax, edi
jne 0x4da8c8
lea eax, [ebp - 0x40]
push 1
push eax
call fcn.00465670
add esp, 8
cmp eax, edi
jne 0x4da9a3
mov eax, dword [ebp - 0x44]
cmp eax, edi
jne 0x4da8e5
lea eax, [ebp - 0x40]
push 1
push eax
call fcn.00465850
add esp, 8
cmp eax, edi
jne 0x4da9a3
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x1c], eax
push edi
lea ecx, [ebp - 0x20]
push edi
push ecx
push 0x400
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x20]
mov eax, dword [0x6643bc]
push edx
lea ecx, [ebp - 0x1c]
push eax
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x20]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x30
push str.Internet_Download_Manager
push eax
call fcn.005866b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.005886c0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 2
push 0x5c
push esi
call fcn.0056ca4b
add esp, 8
lea ecx, [ebp - 0x44]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00401070
jmp 0x4da878
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00401070
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, dword [esi + 0x5c]
mov byte [ebp - 0x11], 0
add eax, 0x290
mov ecx, dword [eax]
cmp ecx, edi
jne 0x4daa00
lea ecx, [eax + 4]
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x58], di
call fcn.00402e10
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 8
mov eax, dword [ecx + 0x5c]
mov dl, byte [eax + 0x2b1]
mov esi, dword [eax + 0x28c]
mov bl, byte [eax + 0x29c]
mov byte [ebp - 0x12], dl
call fcn.004d9f50
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
cmp esi, dword [eax + 0x28c]
jne 0x4daa80
cmp esi, 2
jne 0x4daa84
mov ecx, dword [eax + 0x290]
cmp ecx, edi
jne 0x4daa5a
lea ecx, [eax + 0x294]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4daa64
lea eax, [ebp - 0x58]
push ecx
push eax
call fcn.0056eb4c
add esp, 8
test eax, eax
jne 0x4daa80
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x5c]
cmp bl, byte [edx + 0x29c]
je 0x4daa84
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x12]
mov eax, dword [eax + 0x5c]
cmp cl, byte [eax + 0x2b1]
jne 0x4daaa0
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x4dab88
mov ecx, dword [eax + 0xb0]
xor bl, bl
cmp ecx, 0x3e8
mov byte [ebp - 0x11], bl
jle 0x4daad5
mov edx, dword [eax + 0x420]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 4
push 0x1436
push 0x111
push edx
call edi
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x4daadb
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 0x5c]
add ecx, 0xfc
call fcn.0055c440
xor esi, esi
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x5c]
cmp esi, dword [ecx + 0xb0]
jge 0x4dab44
push esi
call fcn.00487ee0
test bl, bl
je 0x4dab38
mov edx, dword [ebp - 0x18]
lea eax, [esi + esi*4]
mov ecx, dword [edx + 0x5c]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ecx + 0xb0]
test eax, eax
jle 0x4dab38
push eax
mov eax, dword [ecx + 0x420]
push 0x143e
push 0x111
push eax
call edi
inc esi
jmp 0x4daaf2
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0x1437
mov ecx, dword [edi + 0x5c]
push 0x111
mov dword [ebp - 4], 8
mov edx, dword [ecx + 0x420]
push edx
call esi
test bl, bl
je 0x4dab88
mov eax, dword [edi + 0x5c]
push 0
push 0x143d
push 0x111
mov ecx, dword [eax + 0x418]
push ecx
call esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret