Function at 0x41b983
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8c78
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x648]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x38], ebx
mov esi, dword [ebp + 0xc]
lea ecx, [ebx + 0x14]
mov eax, dword [ecx]
xor edx, edx
push edx
push edx
push edx
call dword [eax + 0x18]
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x2c]
cmp dword [esi + 4], 0
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x3c], eax
mov eax, 0x4ef644
cmovne eax, dword [esi + 4]
push 0x1000
push eax
call fcn.004bac46
and dword [esp + 0x650], 0
cmp dword [esp + 0x30], 0
je 0x41bc7b
xor eax, eax
lea ecx, [esp + 0x4c]
and dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x18], eax
call fcn.0041b6c7
mov byte [esp + 0x650], 1
xor eax, eax
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push 0x8000
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
call esi
mov edi, eax
mov dword [esp], 0x200000
mov dword [esp + 0x50], edi
call esi
mov dword [esp + 0x54], eax
pop ecx
test edi, edi
je 0x41bc4a
test eax, eax
je 0x41bc4a
xor edx, edx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x24]
cmp edx, ecx
jne 0x41bab9
xor eax, eax
and dword [esp + 0x24], eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x40]
push 0x8000
push edi
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, 0x200000
sub eax, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x44]
push eax
xor eax, eax
test ecx, ecx
lea ecx, [esp + 0x58]
sete al
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [edi + edx]
mov edx, dword [esp + 0x5c]
push eax
lea eax, [esp + 0x2c]
push eax
lea edx, [edx + ebx]
call fcn.0041c82e
mov edi, dword [esp + 0x4c]
mov esi, eax
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x28]
add edx, dword [esp + 0x20]
add eax, dword [esp + 0x20]
add ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x41bb55
push dword [esp + 0x3c]
mov eax, dword [ecx]
push dword [esp + 0x44]
mov edx, dword [esp + 0x30]
push 0
push edx
call dword [eax + 0x14]
mov ecx, dword [edi + 0x64]
push 0
push dword [esp + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
jne 0x41bbbb
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x20], 0
jne 0x41bb63
cmp dword [esp + 0x1c], 0
je 0x41bb6b
test esi, esi
jne 0x41bb6b
xor al, al
jmp 0x41bb6d
mov al, 1
mov byte [esp + 0x17], al
cmp ebx, 0x200000
je 0x41bb86
test al, al
jne 0x41bb86
mov edi, dword [esp + 0x4c]
jmp 0x41ba82
test ebx, ebx
je 0x41bba6
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x58]
lea ecx, [esp + 0x38]
call fcn.004bae8a
test al, al
je 0x41bbc8
xor ebx, ebx
cmp byte [esp + 0x17], bl
jne 0x41bbe0
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
jmp 0x41ba82
mov byte [esp + 0x650], 3
jmp 0x41bc52
lea ecx, [esp + 0x44]
call fcn.0041be4a
push 0x50b030
lea eax, [esp + 0x48]
push eax
call sub.msvcrt.dll__CxxThrowException
test esi, esi
jne 0x41bc01
cmp dword [esp + 0x44], 3
jne 0x41bbfc
cmp dword [esp + 0x54], 4
jne 0x41bbfc
test byte [esp + 0x94], 3
je 0x41bbff
xor esi, esi
inc esi
test esi, esi
sete bl
lea ecx, [esp + 0xac]
mov byte [esp + 0x650], 4
call fcn.0041c279
push dword [esp + 0x4c]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
pop ecx
push dword [esp + 0x50]
call esi
pop ecx
lea ecx, [esp + 0x54]
call fcn.0041b761
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.micro::files::QFile.0
call fcn.004baeaf
mov al, bl
jmp 0x41bc8e
mov byte [esp + 0x650], 2
lea ecx, [esp + 0xac]
call fcn.0041c279
push dword [esp + 0x4c]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
pop ecx
push dword [esp + 0x50]
call esi
pop ecx
lea ecx, [esp + 0x54]
call fcn.0041b761
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.micro::files::QFile.0
call fcn.004baeaf
xor al, al
mov ecx, dword [esp + 0x648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret 8