Function at 0x41b410
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x481524]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481524]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
test esi, esi
jne 0x41b488
cmp byte [edi + 0x44], dl
jne 0x41b481
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b465
sub eax, esi
push eax
push edx
lea ecx, [edi + 0x4c]
call fcn.00405f60
or eax, 0xffffffff
mov dword [edi + 0x70], eax
mov dword [edi + 0x6c], eax
xor al, al
jmp 0x41b679
call fcn.0041a790
push 2
or ebx, 0xffffffff
push 0
push esi
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
call fcn.0044f66f
push esi
call fcn.004502e7
push 0
push 0
push esi
mov ebp, eax
call fcn.0044f66f
xor eax, eax
add esp, 0x1c
cmp ebp, eax
jg 0x41b4f6
cmp byte [edi + 0x44], al
jne 0x41b4ef
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 0xd
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b4d6
sub eax, esi
push eax
push edx
lea ecx, [edi + 0x4c]
call fcn.00405f60
mov dword [edi + 0x70], ebx
mov dword [edi + 0x6c], ebx
xor al, al
jmp 0x41b679
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
mov dword [esp + 0x3c], eax
push ebp
lea ecx, [esp + 0x18]
call fcn.0041c880
lea eax, [ebp + 1]
push eax
call fcn.0044acd1
push esi
push 1
mov ebx, eax
push ebp
push ebx
mov byte [ebx], 0
call fcn.0044d9db
add esp, 0x14
cmp eax, 1
je 0x41b5b5
push ebx
call fcn.0044afb0
add esp, 4
cmp byte [edi + 0x44], 0
jne 0x41b57e
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b560
sub eax, esi
push eax
push edx
lea ecx, [edi + 0x4c]
call fcn.00405f60
or eax, 0xffffffff
mov dword [edi + 0x70], eax
mov dword [edi + 0x6c], eax
jmp 0x41b581
or eax, 0xffffffff
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x2c], 0x10
jb 0x41b599
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044afbb
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
xor al, al
jmp 0x41b679
mov byte [ebx + ebp], 0
cmp byte [ebx], 0
mov eax, ebx
mov esi, ebx
je 0x41b616
mov cl, byte [esi]
cmp cl, 0xa
jne 0x41b5de
mov edx, esi
sub edx, eax
inc edx
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00405e50
inc esi
mov eax, esi
jmp 0x41b611
cmp cl, 0xd
jne 0x41b610
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x41b5f6
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00405e50
push 0xa
push 1
lea ecx, [esp + 0x1c]
call fcn.00408460
cmp byte [esi + 1], 0xa
jne 0x41b5d9
add esi, 2
mov eax, esi
jmp 0x41b611
inc esi
cmp byte [esi], 0
jne 0x41b5c2
sub esi, eax
je 0x41b625
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00405e50
push ebx
call fcn.0044afb0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x2c], 0x10
jae 0x41b63d
lea eax, [esp + 0x18]
mov edx, dword [edi]
push 0
push 0
push eax
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp byte [edi + 0x44], 0
je 0x41b666
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402630
xor al, al
jmp 0x41b679
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402630
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044aab8
add esp, 0x2c
ret