Function at 0x41bd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47037a
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x491d58]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x10], ebx
cmp edi, ebx
je 0x41bf4e
mov dword [esp + 0x120], 0xffffffff
mov eax, dword [esi]
mov edx, dword [eax + 4]
call edx
cmp eax, dword [ebp + 0xc]
jb 0x41bec5
mov dword [esp + 0x120], 0xffffffff
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x41be0c
cmp eax, 0xffffffff
je 0x41be0c
mov ecx, esi
call fcn.0041b710
push ebx
mov ecx, bind
mov edx, esi
call fcn.0041b540
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x20]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x41bfd2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
xor eax, eax
add esi, 4
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push esi
mov word [ecx], ax
call fcn.004097e0
lea ecx, [esp + 0xc4]
push ecx
call fcn.004024b0
add esp, 0x20
mov esi, eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x120], 4
call fcn.004020c0
mov edi, str.Error_when_reading_file
mov ecx, eax
mov byte [esp + 0x120], 5
call fcn.00419b70
mov edi, esi
mov ecx, eax
call fcn.004196b0
push eax
lea ecx, [esp + 0x60]
call fcn.00402180
push 0x488f4c
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x64], vtable.Exception.0
call fcn.00450350
push 0x13
mov esi, 0xf
push str.Invalid_size_passed
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00409480
mov eax, 2
mov dword [esp + 0x120], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
call fcn.0044ceae
push 0xffffffffffffffff
mov dword [esp + 0x124], 3
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], vtable.BaseException.0
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00409390
push 0x488fcc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 2
push ecx
mov dword [esp + 0x20], vtable.AssertException.0
call fcn.00450350
push 0x13
mov esi, 0xf
push str.Invalid_data_passed
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00409480
mov dword [esp + 0x120], ebx
mov edi, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edi
call fcn.0044ceae
push 0xffffffffffffffff
mov dword [esp + 0x124], edi
push ebx
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], vtable.BaseException.0
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00409390
push 0x488fcc
lea eax, [esp + 0x1c]
mov byte [esp + 0x124], bl
push eax
mov dword [esp + 0x20], vtable.AssertException.0
call fcn.00450350
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret 8