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

Disassembly:
push 0xffffffffffffffff
push 0x10020330
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10027070]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10027070]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
xor edi, edi
push 0x208
mov esi, ecx
lea edx, [esp + 0x2a]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov word [esp + 0x30], cx
call fcn.10010490
add esp, 0xc
cmp esi, edi
je 0x10003074
cmp word [esi], di
je 0x10003074
push 0x105
push esi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
jmp 0x100030d6
push 0x105
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea edx, [esp + 0x24]
push 0x5c
push edx
call fcn.10009ab9
add esp, 8
cmp eax, edi
je 0x1000309e
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x20a
lea eax, [esp + 0x24]
cmp word [eax], di
je 0x100030b6
add eax, 2
sub ecx, 1
jne 0x100030a7
jmp 0x100030d6
cmp ecx, edi
je 0x100030d6
mov eax, 0x20a
sub eax, ecx
mov edx, 0x20a
sub edx, eax
lea ecx, [esp + eax*2 + 0x24]
mov eax, 0x100249e4
call fcn.10001000
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10003215
push edi
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.10009ae5
push esi
mov ebp, eax
push edi
push ebp
call fcn.10010490
push esi
call fcn.10009ae5
push esi
mov edi, eax
push 0
push edi
call fcn.10010490
add esp, 0x20
test ebp, ebp
je 0x10003204
test edi, edi
je 0x10003204
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x10003204
push edi
mov eax, ebp
mov ecx, esi
call fcn.100071e0
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
push str._nSN
push edi
call fcn.10009af0
push str._nID
push edi
call fcn.10009af0
push str._nACTIONID
push edi
call fcn.10009af0
add esp, 0x18
test eax, eax
je 0x100031e2
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100031e2
add eax, 0xa
xor ebx, ebx
cmp byte [eax], bl
je 0x100031de
sub ecx, eax
mov esi, eax
mov dword [esp + 0x14], ecx
movsx edx, byte [esi]
push edx
push str._r_n_b
call fcn.10009b90
add esp, 8
test eax, eax
jne 0x100031da
cmp ebx, 0x20
jge 0x100031da
mov al, byte [esi]
mov ecx, dword [esp + 0x14]
mov byte [ecx + esi], al
inc esi
inc ebx
cmp byte [esi], 0
jne 0x100031b0
mov ecx, dword [esp + 0x18]
mov byte [ecx + ebx], 0
push str._nTITLE
push edi
call fcn.10009af0
push ebp
mov dword [esp + 0x20], 1
call fcn.1000989e
push edi
call fcn.1000989e
add esp, 0x10
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x10003217
mov eax, edi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.100090c2
add esp, 0x22c
ret