Function at 0x444140
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5341fb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 1
call fcn.004440e0
mov ebx, dword [ebp + 0xc]
push 0
push 0
push 3
push 0
test ebx, ebx
jne 0x444192
push 3
push SysReAllocString
jmp 0x444199
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x444367
cmp dword [ebp + 0x14], 0
jne 0x444539
xorps xmm0, xmm0
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x21c]
movq qword [ebp - 0x21c], xmm0
call fcn.00489a30
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], ebx
call fcn.004e817d
mov ecx, eax
test ecx, ecx
jne 0x444209
push 0x80004005
call fcn.00403650
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x210]
push 0x100
push eax
push ebx
call fcn.0048a310
push ebx
lea eax, [ebp - 0x220]
push str.CreateFile_failed__error_code__d
push eax
call fcn.00407a60
add esp, 0x18
or ebx, 0xffffffff
cmp word [ebp - 0x210], 0
je 0x4442a7
push 0x54bdd0
lea ecx, [ebp - 0x220]
call fcn.004447e0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00403320
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040a5a0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4442a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 2
push 0x54bdd0
lea ecx, [ebp - 0x220]
call fcn.0040a5a0
push 0x11
push str.CMappedFile::Open
lea ecx, [ebp - 0x220]
call fcn.0040a5a0
push 2
push 0x54bdd0
lea ecx, [ebp - 0x220]
call fcn.0040a5a0
test edi, edi
jne 0x4442e5
xor ecx, ecx
jmp 0x4442ff
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4442f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x220]
call fcn.0040a5a0
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.00489b30
push dword [ebp - 0x224]
push str.CreateFile
call fcn.0048a1c0
add esp, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x444350
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00489a50
jmp 0x444539
push 0
push eax
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x444393
cmp dword [ebp + 0x14], 0
jne 0x444539
push 0x54c0c0
jmp 0x444531
xor eax, eax
test ebx, ebx
push 0
push dword [ebp + 0x10]
setne al
push 0
lea eax, [eax*2 + 2]
push eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
jne 0x444503
cmp dword [ebp + 0x14], eax
jne 0x444539
xorps xmm0, xmm0
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x21c]
movq qword [ebp - 0x21c], xmm0
call fcn.00489a30
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
mov ebx, eax
call fcn.00405440
mov byte [ebp - 4], 7
lea eax, [ebp - 0x210]
push 0x100
push eax
push ebx
call fcn.0048a310
push ebx
lea eax, [ebp - 0x220]
push 0x54bf88
push eax
call fcn.00407a60
add esp, 0x18
cmp word [ebp - 0x210], 0
je 0x444484
push 0x54bdd0
lea ecx, [ebp - 0x220]
call fcn.004447e0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x224]
call fcn.00403320
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x220]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040a5a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x224]
call fcn.00403400
push 0x54bdd0
lea ecx, [ebp - 0x220]
call fcn.004447e0
push str.CMappedFile::Open
lea ecx, [ebp - 0x220]
call fcn.004447e0
push 0x54bdd0
lea ecx, [ebp - 0x220]
call fcn.004447e0
push edi
lea ecx, [ebp - 0x220]
call fcn.004447e0
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.00489b30
push ebx
push str.CreateFileMapping
call fcn.0048a1c0
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.00403400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00489a50
jmp 0x444539
push 0
push 0
mov edx, 4
test ebx, ebx
push 0
mov eax, 0xf001f
cmove eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x444544
cmp dword [ebp + 0x14], eax
jne 0x444539
push 0x54c024
call fcn.0048a190
add esp, 4
push 1
mov ecx, esi
call fcn.004440e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x10