Function at 0x40b490
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41eef9
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b4e2
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push edi
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
jne 0x40b51b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push ebp
push esi
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x40b549
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b56d
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
lea ecx, [esi + 1]
push ecx
call fcn.004186e2
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov edi, eax
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
push ebp
mov dword [esp + 0x14], eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push ebx
call esi
mov ecx, dword [esp + 0x10]
push 0x3c
push ecx
call fcn.0040dcf0
mov ebp, dword [esp + 0x54]
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
je 0x40b818
push 3
push 0x421680
push esi
call fcn.0040d30e
add esp, 0xc
test eax, eax
jne 0x40b64a
push 0x3e
push esi
call fcn.0040dcf0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x40b818
push str.href
add esi, 3
push esi
mov byte [edi], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov esi, eax
cmp esi, ebx
je 0x40b620
cmp byte [esi + 5], 0x22
jne 0x40b637
add esi, 6
push 0x22
push esi
call fcn.0040dcf0
add esp, 8
cmp eax, ebx
jne 0x40b628
lea esi, [edi + 1]
jmp 0x40b803
push esi
mov byte [eax], 0
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksA]
jmp 0x40b6c2
add esi, 4
lea ebx, [ebx]
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40b640
jmp 0x40b6b0
push 5
push str._img
push esi
call fcn.0040d30e
add esp, 0xc
test eax, eax
jne 0x40b802
push 0x3e
push esi
call fcn.0040dcf0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x40b818
push str.src
add esi, 3
push esi
mov byte [edi], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov esi, eax
cmp esi, ebx
jne 0x40b697
lea esi, [edi + 1]
jmp 0x40b803
cmp byte [esi + 4], 0x22
jne 0x40b6a5
add esi, 5
jmp 0x40b611
add esi, 3
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40b6a8
push 0x20
push esi
call fcn.0040dcf0
add esp, 8
cmp eax, ebx
je 0x40b6c2
mov byte [eax], 0
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_UrlIsA]
test eax, eax
je 0x40b620
push 7
push str.http:__
push esi
call fcn.0040d30e
add esp, 0xc
test eax, eax
je 0x40b726
push 6
push str.ftp:__
push esi
call fcn.0040d30e
add esp, 0xc
test eax, eax
je 0x40b726
push 6
push str.mms:__
push esi
call fcn.0040d30e
add esp, 0xc
test eax, eax
je 0x40b726
push 7
push str.rtsp:__
push esi
call fcn.0040d30e
add esp, 0xc
test eax, eax
jne 0x40b620
mov eax, esi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b740
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00401d80
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
inc edx
cmp eax, edx
mov dword [esp + 0x40], ebx
ja 0x40b76c
push 1
mov ecx, ebp
call fcn.00406df0
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add esi, edx
cmp eax, esi
ja 0x40b77d
sub esi, eax
mov eax, dword [ebp + 4]
cmp dword [eax + esi*4], ebx
jne 0x40b795
push 0x1c
call fcn.004186b7
mov ecx, dword [ebp + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebp + 4]
mov ecx, dword [edx + esi*4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
cmp ecx, ebx
mov byte [esp + 0x40], 1
je 0x40b7c7
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x24]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], 0
call fcn.004015d0
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
inc ecx
cmp eax, 0x10
mov dword [ebp + 0x10], ecx
mov dword [esp + 0x40], 0xffffffff
jb 0x40b7ec
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004186e7
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
lea esi, [edi + 1]
jmp 0x40b803
inc esi
push 0x3c
push esi
call fcn.0040dcf0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40b5c7
mov edx, dword [esp + 0x10]
push edx
call fcn.004186e7
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x3c]
add esp, 4
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret