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

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x2c]
push str.Local_State
mov edx, edi
call fcn.00403afe
sub esp, 0x14
lea eax, [esp + 0x44]
mov ecx, esp
push eax
call fcn.00403942
call fcn.0044a398
add esp, 0x18
xor ebx, ebx
test al, al
jne 0x440ab0
call fcn.00440d68
mov esi, eax
cmp byte [esi + 0x22], bl
je 0x440a6b
push 0x29673337
push 0x7df99f9
push ebx
push 0x11
mov ecx, esi
call fcn.00403088
add esp, 0x10
mov byte [esi + 0x22], bl
push esi
mov edx, edi
lea ecx, [esp + 0xec]
call fcn.00403afe
pop ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00404906
lea ecx, [esp + 0xe8]
call fcn.00403a1a
sub esp, 0x18
lea eax, [esp + 0x44]
mov ecx, esp
push eax
call fcn.00403942
call fcn.0044a398
add esp, 0x18
test al, al
je 0x440d52
cmp dword [esp + 0x40], 7
lea eax, [esp + 0x2c]
push ebx
cmova eax, dword [esp + 0x30]
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x440d52
lea eax, [esp + 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x440b16
mov eax, dword [esp + 0x80]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
mov dword [esp + 0x1c], eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x440b22
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x440d52
push ebx
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x440b48
push edi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x440b16
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [esp + 0xd4]
call fcn.00405036
push edi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.00440e35
mov esi, eax
cmp byte [esi + 0x18], bl
je 0x440b8d
push 0xc59f7d31
push 0xb1dfcd87
push ebx
push 0x18
mov ecx, esi
call fcn.0043d3c7
add esp, 0x10
mov byte [esi + 0x18], bl
push ecx
push esi
lea ecx, [esp + 0xac]
call fcn.00440ef5
push ecx
lea eax, [esp + 0xa8]
mov dword [esp + 0x48], ebx
xorps xmm0, xmm0
mov byte [esp + 0x4c], bl
push eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x64], ebx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x68], bl
movups xmmword [esp + 0x54], xmm0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov byte [esp + 0x74], bl
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x80], bl
call fcn.004410c4
mov esi, dword [esp + 0x54]
pop ecx
pop ecx
push 0xc
pop ecx
test al, al
je 0x440ced
mov eax, dword [esp + 0x50]
sub eax, esi
cdq
idiv ecx
lea ecx, [esp + 0x70]
cmp eax, 1
jbe 0x440c0d
lea ecx, [esi + 0xc]
lea eax, [esp + 0xb8]
push eax
call fcn.00440eac
sub esp, 0x18
lea eax, [esp + 0xd0]
mov ecx, esp
push eax
call fcn.00404925
lea ecx, [esp + 0xa4]
call fcn.004457fb
mov eax, dword [esp + 0xb4]
add esp, 0x18
add eax, 0xfffffffb
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
push eax
push 8
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x440cd2
cmp dword [esp + 0xa0], 0xf
lea eax, [esp + 0x8c]
push dword [esp + 0x14]
cmova eax, dword [esp + 0x90]
add eax, 5
push eax
push ecx
call fcn.0046a650
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004409cc
push dword [esp + 0x28]
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x1c], ebx
jbe 0x440cd2
push dword [esp + 0x1c]
push 8
call ebp
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x440cd2
push dword [esp + 0x1c]
push dword [esp + 0x24]
push ebx
call fcn.0046a650
add esp, 0xc
lea ecx, [esp + 0x8c]
call fcn.00403a68
lea ecx, [esp + 0xb8]
call fcn.00403a68
push 0xc
pop ecx
test esi, esi
je 0x440d2e
mov eax, dword [esp + 0x54]
sub eax, esi
mov dword [esp + 0x14], esi
cdq
idiv ecx
imul eax, eax, 0xc
mov dword [esp + 0x18], eax
cmp eax, 0x1000
jb 0x440d25
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00402d14
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.004698fd
pop ecx
pop ecx
lea ecx, [esp + 0xa4]
call fcn.00440fd5
lea ecx, [esp + 0xb0]
call fcn.004404c1
lea ecx, [esp + 0xd0]
call fcn.00403a68
lea ecx, [esp + 0x2c]
call fcn.00403a1a
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xf4
ret