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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ed49
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 SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b332
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 0x40b36b
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 0x40b399
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b3bd
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.00418532
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.0040db40
mov ebp, dword [esp + 0x54]
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
je 0x40b668
push 3
push 0x4205c8
push esi
call fcn.0040d15e
add esp, 0xc
test eax, eax
jne 0x40b49a
push 0x3e
push esi
call fcn.0040db40
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x40b668
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 0x40b470
cmp byte [esi + 5], 0x22
jne 0x40b487
add esi, 6
push 0x22
push esi
call fcn.0040db40
add esp, 8
cmp eax, ebx
jne 0x40b478
lea esi, [edi + 1]
jmp 0x40b653
push esi
mov byte [eax], 0
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksA]
jmp 0x40b512
add esi, 4
lea ebx, [ebx]
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40b490
jmp 0x40b500
push 5
push str._img
push esi
call fcn.0040d15e
add esp, 0xc
test eax, eax
jne 0x40b652
push 0x3e
push esi
call fcn.0040db40
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x40b668
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 0x40b4e7
lea esi, [edi + 1]
jmp 0x40b653
cmp byte [esi + 4], 0x22
jne 0x40b4f5
add esi, 5
jmp 0x40b461
add esi, 3
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40b4f8
push 0x20
push esi
call fcn.0040db40
add esp, 8
cmp eax, ebx
je 0x40b512
mov byte [eax], 0
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_UrlIsA]
test eax, eax
je 0x40b470
push 7
push str.http:__
push esi
call fcn.0040d15e
add esp, 0xc
test eax, eax
je 0x40b576
push 6
push str.ftp:__
push esi
call fcn.0040d15e
add esp, 0xc
test eax, eax
je 0x40b576
push 6
push str.mms:__
push esi
call fcn.0040d15e
add esp, 0xc
test eax, eax
je 0x40b576
push 7
push str.rtsp:__
push esi
call fcn.0040d15e
add esp, 0xc
test eax, eax
jne 0x40b470
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 0x40b590
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00401d30
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
inc edx
cmp eax, edx
mov dword [esp + 0x40], ebx
ja 0x40b5bc
push 1
mov ecx, ebp
call fcn.00406c50
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add esi, edx
cmp eax, esi
ja 0x40b5cd
sub esi, eax
mov eax, dword [ebp + 4]
cmp dword [eax + esi*4], ebx
jne 0x40b5e5
push 0x1c
call fcn.00418507
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 0x40b617
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.00401580
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 0x40b63c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00418537
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
lea esi, [edi + 1]
jmp 0x40b653
inc esi
push 0x3c
push esi
call fcn.0040db40
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40b417
mov edx, dword [esp + 0x10]
push edx
call fcn.00418537
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