Function at 0x42e020
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [0x491d10]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x491d10
mov dword [esp + 0x28], esi
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], 0
call fcn.0042e590
lea edi, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.0042e780
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e0b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 0xc], 0
jne 0x42e0ee
add ebx, 0xfffffff0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e36b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x42e36b
push str.Doc_file_wweb_den_n
call fcn.00404c20
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7c97d911
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
je 0x42e11b
mov eax, esi
call fcn.0042e730
push 0
push 0x80
push 3
push 0
push 1
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e0c1
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x24], 0
mov esi, eax
jne 0x42e344
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x1c
lea edx, [esp + 0x50]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e344
cmp dword [esp + 0x20], 0x1c
jne 0x42e344
cmp dword [esp + 0x44], 0x484e544b
jne 0x42e315
mov ebx, dword [esp + 0x4c]
imul ebx, ebx, 0x20e
lea eax, [ebx + 0x1c]
mov dword [esp + 0x18], ebx
cmp eax, esi
jne 0x42e315
lea ecx, [ebx + 0xa]
push 0x491d7c
push ecx
call fcn.00440f66
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x42e315
mov dword [esp + 0x1c], 0
test ebx, ebx
jbe 0x42e21d
mov esi, 0xa000
cmp ebx, 0xa000
ja 0x42e1dd
mov esi, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push edx
push esi
add ecx, eax
push ecx
push edi
sub ebx, esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e308
mov eax, dword [esp + 0x20]
cmp esi, eax
jne 0x42e308
add dword [esp + 0x1c], eax
test ebx, ebx
ja 0x42e1ce
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x48]
push eax
mov edi, ebx
call fcn.0042ee00
xor eax, eax
add esp, 4
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call fcn.0040ab70
mov edi, dword [esp + 0x14]
test eax, eax
je 0x42e327
mov ecx, dword [esp + 0x18]
mov edx, edi
lea eax, [esp + 0x2c]
call fcn.0040ac40
test eax, eax
je 0x42e327
lea esi, [esp + 0x2c]
call fcn.0040ac70
test eax, eax
je 0x42e327
mov eax, 0x10
xor ecx, ecx
mov edx, dword [esp + ecx + 0x34]
cmp edx, dword [esp + ecx + 0x50]
jne 0x42e327
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x42e291
xor ebx, ebx
cmp dword [esp + 0x4c], ebx
jbe 0x42e2e6
mov esi, edi
lea eax, [esi + 4]
push eax
push str.Web_den:__ws_n
call fcn.00404c20
add esp, 8
cmp dword [esi], 1
jne 0x42e2d9
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.0042e690
mov edi, dword [esp + 0x14]
inc ebx
add esi, 0x20e
cmp ebx, dword [esp + 0x4c]
jb 0x42e2b4
push edi
call fcn.0043efb8
add esp, 4
lea esi, [esp + 0x2c]
call fcn.0040ac00
lea ecx, [esp + 0x10]
call fcn.004014d0
mov eax, 1
jmp 0x42e36d
mov edx, dword [esp + 0x14]
push edx
call fcn.0043efb8
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.004014d0
jmp 0x42e36b
push edi
call fcn.0043efb8
add esp, 4
lea esi, [esp + 0x2c]
call fcn.0040ac00
lea ecx, [esp + 0x10]
call fcn.004014d0
jmp 0x42e36b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x70], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e36b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret