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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 8], ecx
jne 0x301620f4
mov eax, 0x80070057
jmp 0x3016212c
push edi
call sym.OFFDIAG.exe_public:_static_void___stdcall_NetUI::Node::StartDefer_void_
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], ebx
jne 0x301621e7
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push esi
call fcn.3012b1b5
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x30162132
call sym.OFFDIAG.exe_public:_static_void___stdcall_NetUI::Node::EndDefer_void_
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 0x14
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x30162158
mov esi, 0x80004005
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sym.OFFDIAG.exe_public:_static_void___stdcall_NetUI::Node::EndDefer_void_
mov eax, esi
jmp 0x3016212b
push ebx
push edi
call fcn.30161ed6
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x3016216f
mov esi, 0x8007000e
jmp 0x30162146
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push dword [ebp + 8]
jne 0x3016219c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sym.OFFDIAG.exe_void___stdcall_NetUI::HFree_void__
mov esi, 0x80004005
jmp 0x3016214f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
call fcn.301b9c52
cmp al, bl
mov byte [ebp + 0xb], al
jne 0x301621f4
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp + 0x18], al
je 0x301621d2
cmp word [esi], 0xfeff
jne 0x301621d2
inc esi
inc esi
dec edi
dec edi
jmp 0x301621f4
cmp word [esi], 0xbbef
jne 0x301621f4
cmp byte [esi + 2], 0xbf
jne 0x301621f4
add esi, 3
sub edi, 3
jmp 0x301621f4
mov edi, dword [ebp + 0x14]
push edi
push esi
call fcn.301b9c52
mov byte [ebp + 0xb], al
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.301620c7
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x24]
push eax
call fcn.3019f8c1
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x3016234c
mov eax, dword [ebp - 8]
push dword [eax + 0x18]
mov ecx, dword [ebp - 4]
call fcn.30161f55
cmp byte [ebp + 0xb], bl
jne 0x301622b3
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
je 0x30162246
mov dword [ebp + 0xc], 0x80004005
jmp 0x3016234c
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
call fcn.30199a2f
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
jge 0x30162271
cmp ecx, ebx
mov dword [ebp + 8], ebx
je 0x3016232e
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x3016232e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov dword [ecx + 0x20], eax
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.3019731c
push dword [ebp + 8]
lea ecx, [ebp + 0x14]
call fcn.30161ef2
push dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push edi
push ebx
push ebx
push esi
call fcn.3017ce49
cmp edi, ebx
mov dword [ebp + 0xc], eax
je 0x301622ae
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
jmp 0x3016225c
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], ebx
call fcn.30161f1c
push eax
call fcn.30195597
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x3016231c
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
push dword [edx + 0x20]
add ecx, 0xc
mov dword [ebp - 0x24], 0x30039a88
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
call fcn.30193b09
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push eax
call fcn.301968ac
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x24], 0x30039a88
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
mov dword [ebp + 0x18], ebx
je 0x3016232e
lea ecx, [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], ebx
jl 0x3016234c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x29], bl
je 0x3016234c
mov ecx, dword [ebp - 4]
push dword [ecx + 0xb8]
lea ecx, [eax + 0x1c]
call fcn.3019ace9
cmp dword [ebp - 0xc], ebx
je 0x30162359
push dword [ebp - 0xc]
call sym.OFFDIAG.exe_void___stdcall_NetUI::HFree_void__
mov ecx, dword [ebp - 4]
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x30162368
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
jmp 0x3016214f