Function at 0x401920
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ef78
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x401973
cmp dword [esi + 0x58], 0
jne 0x401f8b
lea edx, [esi + 0x18]
push str.Last_Browser
lea ecx, [ebp - 0x60]
call fcn.004170b0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 7
cmova eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ebd
test al, 0x10
jne 0x401ebd
cmp dword [ebp - 0x4c], 7
lea eax, [ebp - 0x60]
push 0
cmova eax, dword [ebp - 0x60]
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ebd
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401a3b
push dword [ebp - 0x70]
call fcn.00422766
add esp, 4
mov dword [ebp - 0x80], eax
test eax, eax
je 0x401a3b
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push dword [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a2f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x70]
mov byte [ebp - 0x79], 1
jmp 0x401a3e
lea eax, [ebp - 0x64]
push eax
call fcn.004224c5
add esp, 4
mov eax, dword [ebp - 0x18]
push edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x79], 0
je 0x401ebd
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x30]
shr eax, 1
xorps xmm0, xmm0
push eax
push dword [ebp - 0x64]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.004040b0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
cmp esi, eax
je 0x401ad2
cmp dword [ebp - 0x1c], 7
mov ecx, eax
mov edi, dword [ebp - 0x20]
cmova ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x14]
cmp edi, eax
ja 0x401ac2
mov dword [ebp - 0x18], esi
mov edx, esi
cmp eax, 7
jbe 0x401aa6
mov edx, dword [esi]
mov dword [ebp - 0x18], edx
lea eax, [edi + edi]
mov dword [esi + 0x10], edi
push eax
push ecx
push edx
call fcn.0041a970
mov eax, dword [ebp - 0x18]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x401ad2
push ecx
mov byte [ebp - 0x18], 0
mov ecx, esi
push dword [ebp - 0x18]
push edi
call fcn.004042a0
cmp dword [ebp - 0x1c], 7
lea edx, [ebp - 0x30]
mov edi, dword [ebp - 0x20]
cmova edx, dword [ebp - 0x30]
test edi, edi
je 0x401b53
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x401b0d
nop dword [eax]
cmp ecx, edx
je 0x401b53
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x401b00
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x401b53
cmp edi, ecx
mov dword [ebp - 0x88], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x84], 0
cmovb ecx, edi
xorps xmm0, xmm0
cmp dword [ebp - 0x1c], 7
push ecx
cmova eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x98]
push eax
movups xmmword [ebp - 0x98], xmm0
call fcn.004040b0
jmp 0x401b62
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x98]
call fcn.00402e30
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x401b9c
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fa9
push ecx
push edx
call fcn.00417ffd
add esp, 8
movups xmm0, xmmword [ebp - 0x98]
lea ecx, [esi + 0x30]
lea eax, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [ebp - 0x88]
movq qword [ebp - 0x20], xmm0
cmp ecx, eax
je 0x401c0b
cmp dword [ebp - 0x1c], 7
mov edx, eax
mov edi, dword [ebp - 0x20]
cmova edx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x14]
cmp edi, eax
ja 0x401bfd
mov dword [ebp - 0x18], ecx
cmp eax, 7
jbe 0x401bdf
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
lea eax, [edi + edi]
mov dword [ecx + 0x10], edi
push eax
push edx
push dword [ebp - 0x18]
call fcn.0041a970
mov eax, dword [ebp - 0x18]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x401c0b
push edx
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
push edi
call fcn.004042a0
push dword [ebp - 0x64]
call fcn.004224c5
add esp, 4
lea edx, [esi + 0x18]
lea ecx, [ebp - 0x48]
push str.Last_Version
call fcn.004170b0
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 7
cmova eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x34], 7
lea eax, [ebp - 0x48]
push 0
cmova eax, dword [ebp - 0x48]
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x401efa
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401cc9
push dword [ebp - 0x78]
call fcn.00422766
mov edi, eax
add esp, 4
test edi, edi
je 0x401cc9
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push dword [ebp - 0x78]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401cbd
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x78]
mov byte [ebp - 0x79], 1
jmp 0x401ccc
lea eax, [ebp - 0x64]
push eax
call fcn.004224c5
add esp, 4
mov edi, dword [ebp - 0x80]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x79], 0
je 0x401efa
push edi
push dword [ebp - 0x64]
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0x98], xmm0
call fcn.004041b0
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.00417170
mov edi, eax
add esi, 0x48
cmp esi, edi
je 0x401d93
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x401d63
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x401d59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fae
mov eax, edx
push ecx
push eax
call fcn.00417ffd
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov ecx, dword [ebp - 0x9c]
cmp ecx, 7
jbe 0x401dd3
mov edx, dword [ebp - 0xb0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401dc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fae
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov ecx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
cmp ecx, 0xf
jbe 0x401e2a
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fae
push ecx
push edx
call fcn.00417ffd
add esp, 8
push dword [ebp - 0x64]
call fcn.004224c5
mov ecx, dword [ebp - 0x34]
add esp, 4
cmp ecx, 7
jbe 0x401e6f
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401e65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fb8
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp ecx, 7
jbe 0x401ebd
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401eb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fb8
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov ecx, dword [ebp - 0x4c]
cmp ecx, 7
jbe 0x401f8b
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401f81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fb3
jmp 0x401f81
mov ecx, dword [ebp - 0x34]
cmp ecx, 7
jbe 0x401f34
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401f2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fb8
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp ecx, 7
jbe 0x401ebd
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401eb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fb8
jmp 0x401eb3
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00417fbf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00422715
call fcn.00422715
call fcn.00422715
call fcn.00422715
int3