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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
cmp byte [edi + 0x35], 0
je 0x442b9c
push edi
call fcn.004430e0
lea ecx, [edi + 0x1c]
mov dword [esp + 0x2c], ecx
call fcn.00443e40
lea ecx, [edi + 4]
mov dword [esp + 0x28], ecx
call fcn.00410ab0
push 0x4992cc
xor ebx, ebx
mov eax, edi
call fcn.00415d80
xor edx, edx
cmp esi, edx
mov byte [edi + 0x34], dl
mov byte [edi + 0x35], dl
jne 0x442bd2
xor eax, eax
jmp 0x442be6
mov eax, esi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x442bd7
sub eax, ebx
sar eax, 1
mov ebx, eax
push esi
mov eax, edi
call fcn.00415d80
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x14], ebx
push edi
push 0x80
push 3
push edi
push 7
push SysReAllocStringLen
push esi
mov dword [esp + 0x6c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x442d30
call fcn.004164a0
cmp eax, edi
jl 0x442df6
lea eax, [esp + 0x20]
push eax
xor esi, esi
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x442c51
call fcn.004164a0
cmp eax, esi
jl 0x442c5b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, eax
mov dword [esp + 0x20], ecx
push edi
call fcn.00460f82
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
mov byte [esp + 0x50], 1
push esi
je 0x442de3
lea edx, [esp + 0x20]
push edx
push edi
push eax
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x442c91
call fcn.004164a0
cmp ebx, esi
je 0x442ca2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], esi
mov ebx, esi
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4bb38c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
cmp edi, esi
mov byte [esp + 0x50], 2
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
jbe 0x442cf2
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], edi
lea edi, [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
call fcn.00442100
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
call fcn.004421a0
test eax, eax
je 0x442db9
jmp 0x442d10
mov edi, dword [esp + 0x28]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x10]
push esi
push ecx
push edx
mov ecx, edi
call fcn.00411800
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x442d3b
mov dword [ecx], eax
jmp 0x442d3d
mov dword [esp + 0x14], eax
mov ebx, eax
jmp 0x442c29
mov dword [edi], eax
lea ebx, [esp + 0x10]
mov dword [edi + 4], eax
mov dword [esp + 0x1c], eax
call fcn.00421af0
mov edi, eax
call fcn.00421b70
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x442d9d
test eax, eax
jl 0x442e09
movzx edx, word [ecx]
cmp dx, 0x5b
jne 0x442d9d
test eax, eax
jle 0x442d9d
push 0x5d
push ecx
call fcn.0046acda
add esp, 8
test eax, eax
je 0x442d9d
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x442d9d
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
call fcn.00443df0
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
call fcn.004421a0
xor esi, esi
test eax, eax
jne 0x442d10
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x442dde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00469050
add esp, 4
cmp ebx, esi
je 0x442df6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00416be0
int3