Function at 0x44ea53
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6d99
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10dc
call fcn.004a3980
mov eax, dword [0x4e8070]
xor eax, esp
mov dword [esp + 0x10d8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e8070]
xor eax, esp
push eax
lea eax, [esp + 0x10f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov ebx, 0x4edd14
cmp dword [0x4ec304], edi
je 0x44eac5
push ebx
mov dword [0x4ec304], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp esi, edi
jne 0x44eadc
mov ecx, dword [esp + 0x14]
push 0x4cb19c
call fcn.00403461
jmp 0x44edcb
push esi
lea esi, [esp + 0x88]
call fcn.004034c9
lea eax, [esp + 0x28]
mov ecx, esi
mov dword [esp + 0x10f8], edi
call fcn.004104f6
mov esi, eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x84]
call fcn.00410515
mov edi, eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x84]
call fcn.004104f6
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x70]
push eax
call fcn.00428e3b
add esp, 0x1c
test byte [0x4f6228], 1
jne 0x44eb6b
or dword [0x4f6228], 1
mov byte [esp + 0x10f8], 1
call fcn.0044edf3
push 0x4bd78d
call fcn.00497c81
pop ecx
mov byte [esp + 0x10f8], 0
and dword [esp + 0x34], 0
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x44eba3
mov ecx, dword [esp + 0x14]
push 0x4cb19c
call fcn.00403461
jmp 0x44edbb
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x1100], 2
call fcn.0044ef30
mov eax, dword [0x4f6120]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4f6108]
lea edi, [esp + 0x28]
lea esi, [esp + 0x18]
mov dword [esp + 0x28], eax
call fcn.0043a0e2
test al, al
jne 0x44ec30
lea edi, [esp + 0x48]
call fcn.00431223
mov esi, eax
add esi, 0x1c
push 8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x44ec07
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x44ec32
lea esi, [esp + 0x18]
call fcn.00431223
mov ecx, dword [esp + 0x14]
add eax, 0x24
push eax
call fcn.00403461
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
jmp 0x44edbd
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x44ec51
lea eax, [esp + 0x88]
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
mov byte [esp + 0x10f8], 3
cmp eax, edi
je 0x44ec79
cmp eax, 0xffffffff
jne 0x44ec92
mov ecx, dword [esp + 0x14]
push 0x4cb19c
call fcn.00403461
lea eax, [esp + 0x18]
call fcn.0040681e
jmp 0x44ec2a
push 0xfff
lea eax, [esp + 0xe9]
push edi
push eax
mov byte [esp + 0xf0], 0
call fcn.00499dd0
add esp, 0xc
push edi
lea eax, [esp + 0x34]
push eax
mov esi, 0x1000
push esi
lea eax, [esp + 0xf0]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x68]
push esi
push eax
lea ecx, [esp + 0xec]
call fcn.0044e347
pop ecx
pop ecx
push 0xc
push 8
push eax
lea esi, [esp + 0xac]
mov byte [esp + 0x1104], 4
call fcn.0040c494
push edi
push 1
lea ecx, [esp + 0x70]
call fcn.00403db0
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x10f8], 7
xor eax, eax
cmp dword [esp + 0xb8], 0x10
push 9
pop ecx
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xa4]
jae 0x44ed56
lea eax, [esp + 0xa4]
push 0x20
push eax
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x84]
push eax
call fcn.0044ee54
push 0xa
pop ecx
mov edi, eax
lea esi, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
push ebx
mov byte [esp + 0x10fc], 6
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.00403483
push 0
push 1
lea ecx, [esp + 0xa8]
call fcn.00403db0
lea eax, [esp + 0x18]
call fcn.0040681e
push 0
push 1
lea esi, [esp + 0x8c]
call fcn.00403ead
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10d8]
xor ecx, esp
call fcn.0049795f
mov esp, ebp
pop ebp
ret