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

Disassembly:
push 0xffffffffffffffff
push 0x1001a3ab
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [esp + 0x154]
mov esi, dword [esp + 0x150]
push 0x104
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x15c]
lea ecx, [esp + 0x39]
push edi
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov byte [esp + 0x40], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp esi, edi
je 0x10004e96
cmp byte [esi], 0
je 0x10004e96
push 0x105
push esi
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x10004ef5
push 0x105
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x34]
push 0x5c
push ecx
call dword [sym.imp.MSVCR90.dll__mbsrchr]
add esp, 8
cmp eax, edi
je 0x10004ebf
mov byte [eax + 1], 0
mov ecx, 0x105
lea eax, [esp + 0x34]
cmp byte [eax], 0
je 0x10004ed5
inc eax
sub ecx, 1
jne 0x10004ec8
jmp 0x10004ef5
cmp ecx, edi
je 0x10004ef5
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x34]
mov eax, 0x1001cda8
call fcn.100034e0
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x10005219
push edi
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ebx, [esi + 1]
push ebx
mov dword [esp + 0x24], ebx
call fcn.1001905b
push ebx
push edi
push eax
mov dword [esp + 0x2c], eax
call sub.MSVCR90.dll_memset
push ebx
call fcn.1001905b
push ebx
mov ebp, eax
push 0
push ebp
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x3c]
add esp, 0x20
test eax, eax
je 0x1000520e
test ebp, ebp
je 0x1000520e
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x34]
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000520e
mov eax, dword [esp + 0x1c]
push ebp
mov ecx, ebx
call fcn.1000cff0
add esp, 4
push ebp
call dword [sym.imp.USER32.dll_CharUpperA]
push str._nSN
push ebp
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
je 0x10004ffa
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10004ffa
add eax, 4
xor edi, edi
cmp byte [eax], 0
je 0x10004ff6
mov ebx, ecx
mov esi, eax
sub ebx, eax
movsx eax, byte [esi]
push eax
push str._r_n_b
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x10004fee
cmp edi, 0x104
jge 0x10004fee
mov cl, byte [esi]
mov byte [ebx + esi], cl
inc esi
inc edi
cmp byte [esi], al
jne 0x10004fc5
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov byte [ecx + edi], 0
push str._nID
push ebp
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
je 0x1000505b
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1000505b
add eax, 4
xor edi, edi
cmp byte [eax], 0
je 0x10005057
mov ebx, ecx
mov esi, eax
sub ebx, eax
movsx edx, byte [esi]
push edx
push str._r_n_b
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x1000504f
cmp edi, 0x104
jge 0x1000504f
mov al, byte [esi]
mov byte [ebx + esi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x10005025
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov byte [ecx + edi], 0
push str._nACTIONID
push ebp
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
je 0x100050bb
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x100050bb
add eax, 0xa
xor edi, edi
cmp byte [eax], 0
je 0x100050b7
mov ebx, ecx
mov esi, eax
sub ebx, eax
movsx ecx, byte [esi]
push ecx
push str._r_n_b
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x100050af
cmp edi, 0x104
jge 0x100050af
mov dl, byte [esi]
mov byte [ebx + esi], dl
inc esi
inc edi
cmp byte [esi], al
jne 0x10005086
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov byte [ecx + edi], 0
push str._nTITLE
push ebp
call dword [sym.imp.MSVCR90.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x100051f6
cmp dword [esp + 0x18], 0
je 0x100051f6
mov eax, dword [esp + 0x1c]
push ebp
mov ecx, ebx
add esi, 7
call fcn.1000cff0
add esp, 4
xor edi, edi
cmp byte [esi], 0
je 0x10005121
mov ebx, dword [esp + 0x18]
sub ebx, esi
mov edi, edi
movsx eax, byte [esi]
push eax
push 0x1001cde0
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x10005121
mov cl, byte [esi]
mov byte [ebx + esi], cl
inc esi
inc edi
cmp byte [esi], al
jne 0x10005100
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
mov byte [ecx + edi], 0
call fcn.100044b0
push 0x1001c74d
push 0x1001cde4
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x154], 0
call fcn.1000ba60
push 0x1001c74d
push 0x1001cdec
lea ecx, [esp + 0x1c]
push ecx
call fcn.1000ba60
push 0x1001c74d
push 0x1001cdf8
lea edx, [esp + 0x1c]
push edx
call fcn.1000ba60
push 0x1001c74d
push 0x1001ce00
lea eax, [esp + 0x1c]
push eax
call fcn.1000ba60
push 0x1001c74d
push 0x1001ce08
lea ecx, [esp + 0x1c]
push ecx
call fcn.1000ba60
lea ebx, [esp + 0x14]
call fcn.1000bcf0
call fcn.1000bc60
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push edx
push 0x1001ce10
mov eax, 0x104
call fcn.100032e0
mov dword [esp + 0x150], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100051f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
mov edi, 1
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 8
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.100192c6
add esp, 0x138
ret