Function at 0x409fd1
Capabilities:
Read file on windows

Disassembly:
push 0xb8
mov eax, 0x469561
call fcn.004522ba
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
inc ebx
mov esi, ecx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], esi
test byte [0x486830], bl
jne 0x40a01b
or dword [0x486830], ebx
mov dword [ebp - 4], edi
call fcn.0040bf21
push 0x46af08
call fcn.00451990
or dword [ebp - 4], 0xffffffff
pop ecx
cmp byte [0x4832af], 0
je 0x40a036
push 0x486818
mov byte [0x4832af], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 8
pop ecx
mov dword [ebp - 0xb4], edi
xor eax, eax
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0xb4], 0xffffffff
je 0x40a29c
test byte [ebp - 0xb4], 0x10
jne 0x40a29c
cmp dword [ebp - 0x98], 0
ja 0x40a29c
cmp dword [ebp - 0x94], 0xa00000
ja 0x40a29c
mov edx, esi
lea eax, [ebp - 0x30]
call fcn.00401860
lea eax, [ebp - 0xbc]
push eax
lea edi, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.00406110
mov esi, eax
lea eax, [ebp - 0x88]
push eax
call fcn.00406170
mov ebx, eax
lea eax, [ebp - 0x90]
push eax
call fcn.00406110
push dword [esi + 4]
push dword [esi]
lea esi, [ebp - 0xc4]
push dword [ebx + 4]
push dword [ebx]
push dword [eax + 4]
push dword [eax]
call fcn.00409350
add esp, 0x18
mov ebx, 0x486818
push ebx
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, edi
push eax
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 2
call fcn.0040c070
mov eax, dword [0x4867dc]
mov dword [ebp - 0x84], eax
mov eax, dword [0x4867c4]
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x90]
mov dword [ebp - 0x88], eax
call fcn.0040c6f4
test al, al
jne 0x40a1a5
call fcn.0040c6c9
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x20]
add eax, 0x24
mov dword [ebp - 0x74], ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00401800
push 8
pop ecx
lea edi, [ebp - 0xa0]
lea esi, [ebp - 0x78]
xor eax, eax
mov byte [ebp - 4], 3
repe cmpsb byte [esi], byte es:[edi]
je 0x40a16d
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x40a19b
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call fcn.00401800
lea ecx, [ebp - 0x70]
call fcn.00401830
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebp - 0x30]
call fcn.00409790
jmp 0x40a2a9
lea ecx, [ebp - 0x70]
call fcn.00401830
jmp 0x40a1a7
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.0040bc4e
mov eax, dword [ebp - 0xa0]
push edi
push edi
push 3
push edi
push 7
push SysReAllocString
push dword [ebp - 0x80]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 5
cmp esi, edi
je 0x40a27d
cmp esi, 0xffffffff
je 0x40a27d
push dword [ebp - 0x94]
call fcn.004513ee
pop ecx
push edi
lea ecx, [ebp - 0x8c]
push ecx
push dword [ebp - 0x94]
mov dword [ebp - 0x80], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a274
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x8c], eax
jne 0x40a274
push eax
push dword [ebp - 0x80]
lea esi, [ebp - 0x70]
call fcn.0040bc61
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00401a20
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00401830
lea eax, [ebp - 0x30]
push eax
call fcn.0040bf82
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x50]
push 0xffffffffffffffff
mov dword [eax + 4], ecx
push edi
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [eax + 8]
call fcn.00401a20
push dword [ebp - 0x80]
call fcn.00451311
pop ecx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push eax
call fcn.00401800
lea ecx, [ebp - 0x84]
call fcn.004011a0
lea ecx, [ebp - 0x4c]
jmp 0x40a182
mov ecx, dword [ebp - 0x7c]
push 0x46e674
call fcn.004017c0
mov eax, dword [ebp - 0x7c]
call fcn.0045233d
ret 4