Function at 0x41eb64
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49519a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x14], ecx
call dword [eax + 0x24]
mov dword [ebp - 0x28], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0x44e]
test edx, edx
je 0x41eef9
movzx edx, byte [eax + 0x43c]
test edx, edx
jne 0x41ebd3
movzx edx, byte [eax + 0x44d]
test edx, edx
je 0x41ebf8
mov ecx, eax
call fcn.0041ef20
mov dword [ebp - 0x24], 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
mov edx, eax
lea eax, [edx + 0x440]
push eax
push 0x2000
push dword [edx + 0x2d0]
push dword [edx + 0x438]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ec34
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x440]
test ecx, ecx
je 0x41ec4d
mov byte [eax + 0x44d], 1
jmp 0x41ec4d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x440]
test ecx, ecx
jne 0x41ec4d
mov byte [eax + 0x43c], 1
jmp 0x41eebe
mov dword [ebp - 0x2c], 0
mov ebx, dword [eax + 0x450]
test ebx, ebx
je 0x41ef17
mov edx, dword [eax + 0x454]
cmp edx, dword [eax + 0x458]
jl 0x41ec74
xor edx, edx
jmp 0x41ecd1
add ebx, edx
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41ec8e
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x440]
jmp 0x41ecd1
mov eax, dword [ebp - 0x14]
xor edx, edx
add dword [eax + 0x454], 4
push edx
push edx
push edx
call fcn.0046c858
mov edx, dword [ebp - 0x14]
push dword [edx + 0x440]
push dword [edx + 0x2d0]
push eax
call fcn.0046c858
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x440]
cmp eax, dword [ebp - 0x2c]
jne 0x41eccf
mov edx, 1
jmp 0x41ecd1
xor edx, edx
test edx, edx
jne 0x41ee5a
mov dword [ebp - 0x30], 0x2400
mov edx, 0x2400
mov eax, dword [ebp - 0x14]
movzx ebx, byte [eax + 0x44c]
test ebx, ebx
jne 0x41ecf7
xor ebx, ebx
jmp 0x41ed2c
push ecx
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x14]
push dword [edx + 0x2d0]
push eax
push dword [edx + 0x2d4]
call fcn.0046c7b8
add esp, 0x10
test eax, eax
jne 0x41edfb
mov ebx, 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x440]
mov edx, dword [ebp - 0x30]
cmp edx, ecx
jbe 0x41ed32
xor ebx, ebx
mov byte [ebp - 0x3c], 7
test ebx, ebx
mov byte [ebp - 0x3b], 5
je 0x41ed45
mov eax, 0x1000000
jmp 0x41ed4a
mov eax, 0
mov dword [ebp - 0x38], eax
je 0x41ed7a
mov eax, edx
and eax, 0xff000000
shr eax, 0x18
mov ecx, edx
and ecx, 0xff0000
shr ecx, 8
or eax, ecx
mov esi, edx
and esi, 0xff00
shl esi, 8
or eax, esi
shl edx, 0x18
or eax, edx
jmp 0x41eda3
mov eax, ecx
and eax, 0xff000000
shr eax, 0x18
mov edx, ecx
and edx, 0xff0000
shr edx, 8
or eax, edx
mov esi, ecx
and esi, 0xff00
shl esi, 8
or eax, esi
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
push 7
mov ecx, dword [edx + 0xe8]
push 0xc
push eax
call fcn.00467d18
test ebx, ebx
je 0x41eddc
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xe8]
push dword [eax + 0x2d4]
call fcn.00467ff0
jmp 0x41eeaf
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xe8]
push dword [eax + 0x440]
push dword [eax + 0x2d0]
call fcn.00467ff0
jmp 0x41eeaf
mov dword [ebp - 0x54], 9
mov ecx, 0x4a3b98
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], 0x4bb040
mov dword [ebp - 0x4c], eax
mov eax, dword [0x4a3ba4]
cmp eax, 9
jl 0x41ee2a
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call fcn.0045763c
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x44d], 1
call fcn.0041ef20
mov dword [ebp - 0x24], 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x47], 5
mov eax, 7
mov esi, ecx
mov byte [ebp - 0x48], al
and esi, 0xff000000
shr esi, 0x18
mov dword [ebp - 0x44], 0x2000000
mov edx, ecx
and edx, 0xff0000
push eax
shr edx, 8
or esi, edx
push 0xc
mov ebx, ecx
and ebx, 0xff00
shl ebx, 8
or esi, ebx
shl ecx, 0x18
or esi, ecx
lea edi, [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], esi
mov ecx, dword [ecx + 0xe8]
push edi
call fcn.00467d18
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x440]
add dword [edx + 0x444], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push dword [0x4b4658]
call fcn.004663b0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor edx, edx
jmp 0x41ecd1