Function at 0x407bc0
Capabilities:
Accept command line arguments
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x484]
sub esp, 0x484
push 0xffffffffffffffff
push 0x43f920
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4530e4]
xor eax, ebp
mov dword [ebp + 0x480], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov eax, dword [ebx + 0xc]
mov edi, ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c06
sub eax, edx
sar eax, 1
add eax, eax
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ba43
mov esi, eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0042d060
mov eax, dword [ebx + 0xc]
add esp, 0x10
push 0x30000000
lea edx, [ebp - 0x24]
push edx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp + 0x27a]
push edx
mov word [ebp + 0x278], cx
call fcn.0042d060
add esp, 0xc
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x278]
push ecx
push esi
mov dword [ebp - 0x2c], 0x104
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
push esi
call fcn.0042c214
xor esi, esi
add esp, 4
cmp word [ebp + 0x278], si
je 0x407e3b
lea edx, [ebp + 0x278]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x18], esi
test eax, eax
jne 0x407e42
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x1c], esi
cmp dword [edi + 0x21c], esi
je 0x407dce
mov ecx, dword [edi + 0x21c]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp + 0x278]
push edx
call eax
test al, al
je 0x407dce
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x407dc6
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x407db9
push eax
cmp dword [ebx + 0x18], esi
jne 0x407da1
lea esi, [ebp + 0x1c]
call fcn.00409600
push 0x444482
lea ecx, [ebp + 0x54]
mov dword [ebp - 4], 0
call fcn.0040a080
mov byte [ebp - 4], 1
cmp dword [edi + 0x21c], 0
je 0x407d58
mov ecx, dword [edi + 0x21c]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp + 0x54]
push eax
mov eax, esi
push eax
call edx
test al, al
jne 0x407d68
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.0040a3e0
cmp dword [ebp + 0x6c], 0x10
mov eax, dword [ebp + 0x58]
jae 0x407d74
lea eax, [ebp + 0x58]
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebx + 0xc]
push ecx
push eax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.MxUI.dll_HTMLayoutDataReady]
test eax, eax
lea ecx, [ebp + 0x54]
setne byte [ebp - 0x11]
call fcn.0040a4c0
lea ecx, [ebp + 0x1c]
call fcn.0040a4c0
xor esi, esi
jmp 0x407db6
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [ebx + 0xc]
push ecx
push edx
call dword [sym.imp.MxUI.dll_HTMLayoutDataReady]
test eax, eax
setne byte [ebp - 0x11]
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x407dc6
push ecx
call fcn.0042c214
add esp, 4
mov al, byte [ebp - 0x11]
jmp 0x407fd6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x407e3b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp + 0x72]
push ecx
mov word [ebp + 0x70], ax
call fcn.0042d060
lea edx, [ebp + 0x70]
add esp, 0xc
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407e00
push 0x4447f8
lea edx, [ebp + 0x70]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x407e3b
push 0x40000
push str.File_not_found
lea eax, [ebp + 0x278]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x407fd6
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
lea ecx, [ebp + 0x278]
push ecx
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x407e7f
push 0x44de28
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], esi
call fcn.0042d35b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f8f
test esi, esi
je 0x407f8f
push esi
call fcn.0042ba43
mov edx, dword [ebp - 0x1c]
add esp, 4
push 0
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407f7a
cmp esi, dword [ebp - 0x20]
jne 0x407f7a
cmp dword [ebx + 0x18], 0
push esi
jne 0x407f61
mov ecx, dword [ebp - 0x18]
lea esi, [ebp]
call fcn.00409600
push 0x444482
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.0040a080
mov byte [ebp - 4], 4
cmp dword [edi + 0x21c], 0
je 0x407f1b
mov ecx, dword [edi + 0x21c]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [ebp + 0x38]
push edx
mov edx, esi
push edx
call eax
test al, al
jne 0x407f2b
push 0xffffffffffffffff
push 0
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x38]
call fcn.0040a3e0
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x407f37
lea eax, [ebp + 0x3c]
mov edx, dword [ebp + 0x4c]
mov ecx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
call dword [sym.imp.MxUI.dll_HTMLayoutDataReady]
test eax, eax
lea ecx, [ebp + 0x38]
setne bl
call fcn.0040a4c0
lea ecx, [ebp]
call fcn.0040a4c0
jmp 0x407fb1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.MxUI.dll_HTMLayoutDataReady]
test eax, eax
setne bl
jmp 0x407fb1
push 0x44de28
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 0
call fcn.0042d35b
push 0x44de28
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0
call fcn.0042d35b
mov byte [ebp - 0x11], 0
mov eax, 0x407fae
ret
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x407fc4
test eax, eax
je 0x407fc4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x407fd4
push eax
call fcn.0042c214
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x480]
xor ecx, ebp
call fcn.0042bb57
add ebp, 0x484
mov esp, ebp
pop ebp
ret