Function at 0x41b0d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45fda8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor edi, edi
cmp ebp, edi
jne 0x41b146
mov ebp, dword [esp + 0x30]
cmp byte [ebp + 0x2c], 0
jne 0x41b13f
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41b121
sub eax, edx
lea edi, [ebp + 0x34]
mov esi, eax
call fcn.00419f60
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x3c], eax
xor al, al
jmp 0x41b3ee
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x41b162
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x41b151
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.00446b70
push ebp
call fcn.00446a7b
push edi
push edi
push ebp
mov esi, eax
call fcn.00446b70
add esp, 0x1c
cmp esi, edi
jg 0x41b1db
cmp byte [ebx + 0x2c], 0
jne 0x41b1d4
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 0xc
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41b1b0
sub eax, esi
lea edi, [ebx + 0x34]
mov esi, eax
mov ebx, edx
call fcn.00419f60
mov eax, dword [esp + 0x30]
or ecx, 0xffffffff
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], ecx
xor al, al
jmp 0x41b3ee
mov dword [esp + 0x14], 0x47f7dc
lea eax, [esp + 0x14]
mov dword [esp + 0x28], edi
push eax
mov edi, esi
call fcn.00419ea0
lea ecx, [esi + 1]
push ecx
call fcn.0042a2c4
push ebp
mov edi, eax
push 1
push esi
push edi
mov dword [esp + 0x2c], edi
mov byte [edi], 0
call fcn.004466bc
add esp, 0x14
cmp eax, 1
je 0x41b27f
push edi
call fcn.0042a2ef
add esp, 4
cmp byte [ebx + 0x2c], 0
jne 0x41b264
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41b240
sub eax, esi
lea edi, [ebx + 0x34]
mov esi, eax
mov ebx, edx
call fcn.00419f60
mov eax, dword [esp + 0x30]
or ecx, 0xffffffff
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], ecx
mov eax, dword [esp + 0x14]
cmp eax, 0x47f7dc
je 0x41b278
push eax
call fcn.0042a2ef
add esp, 4
xor al, al
jmp 0x41b3ee
mov byte [edi + esi], 0
cmp byte [edi], 0
mov esi, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x34], ecx
mov ebp, edi
je 0x41b38b
mov al, byte [ebp]
cmp al, 0xa
jne 0x41b2fc
mov ebx, dword [esi]
mov eax, ebp
sub eax, ecx
add eax, 1
add ebx, eax
cmp ebx, dword [esi + 4]
mov dword [esp + 0x1c], eax
jbe 0x41b2d2
mov edi, dword [esi + 4]
lea edx, [esp + 0x14]
add edi, ebx
push edx
call fcn.00419ea0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esi]
push ecx
lea ecx, [eax + esi + 8]
push ecx
call fcn.00446ea0
add esp, 0xc
mov dword [esi], ebx
add ebp, 1
mov byte [ebx + esi + 8], 0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov ecx, ebp
jmp 0x41b381
cmp al, 0xd
jne 0x41b37e
mov eax, ebp
sub eax, ecx
test eax, eax
jle 0x41b31b
push eax
push ecx
lea ebx, [esp + 0x1c]
call fcn.0041a040
mov esi, dword [esp + 0x14]
mov byte [esp + 0x34], 0xa
mov ebx, dword [esi]
add ebx, 1
cmp ebx, dword [esi + 4]
jbe 0x41b341
mov edi, dword [esi + 4]
lea edx, [esp + 0x14]
add edi, ebx
push edx
call fcn.00419ea0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esi]
push 1
lea eax, [esp + 0x38]
push eax
lea edx, [ecx + esi + 8]
push edx
call fcn.00446ea0
mov dword [esi], ebx
mov byte [ebx + esi + 8], 0
mov ebx, dword [esp + 0x3c]
add esp, 0xc
cmp byte [ebp + 1], 0xa
jne 0x41b373
add ebp, 2
mov dword [esp + 0x34], ebp
mov ecx, ebp
jmp 0x41b381
add ebp, 1
mov dword [esp + 0x34], ebp
mov ecx, ebp
jmp 0x41b381
add ebp, 1
cmp byte [ebp], 0
jne 0x41b298
sub ebp, ecx
je 0x41b3a2
push ebp
push ecx
lea ebx, [esp + 0x1c]
call fcn.0041a040
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
push edi
call fcn.0042a2ef
mov eax, dword [ebx]
mov edx, dword [eax + 8]
add esp, 4
push 0
push 0
lea ecx, [esi + 8]
push ecx
mov ecx, ebx
call edx
cmp byte [ebx + 0x2c], 0
je 0x41b3db
cmp esi, 0x47f7dc
je 0x41b278
push esi
call fcn.0042a2ef
add esp, 4
xor al, al
jmp 0x41b3ee
cmp esi, 0x47f7dc
je 0x41b3ec
push esi
call fcn.0042a2ef
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8