Function at 0x42efd0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45baa8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
mov esi, ecx
test esi, esi
jne 0x42f04c
cmp byte [ebp + 0x44], cl
jne 0x42f045
mov byte [ebp + 0x44], 1
mov dword [ebp + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42f027
sub eax, esi
push eax
push edx
lea ecx, [ebp + 0x4c]
call fcn.00419740
or eax, 0xffffffff
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x6c], eax
xor al, al
jmp 0x42f30f
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x42f064
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
test edi, edi
jne 0x42f053
xor eax, eax
push 2
push eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
or ebx, 0xffffffff
push esi
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
call fcn.00443785
add esp, 0xc
push esi
call fcn.004439cc
add esp, 4
push 0
push 0
push esi
mov edi, eax
call fcn.00443785
add esp, 0xc
test edi, edi
jg 0x42f0e2
cmp byte [ebp + 0x44], 0
jne 0x42f0db
mov byte [ebp + 0x44], 1
mov dword [ebp + 0x48], 0xd
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42f0c0
sub eax, esi
push eax
push edx
lea ecx, [ebp + 0x4c]
call fcn.00419740
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x6c], ebx
xor al, al
jmp 0x42f30f
lea eax, [edi + 1]
push eax
call fcn.00442462
add esp, 4
push esi
push 1
mov ebx, eax
push edi
push ebx
mov byte [ebx], 0
call fcn.004430b0
add esp, 0x10
cmp eax, 1
push ebx
je 0x42f13e
call fcn.0044245d
add esp, 4
cmp byte [ebp + 0x44], 0
jne 0x42f045
mov byte [ebp + 0x44], 1
mov dword [ebp + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42f130
jmp 0x42f030
lea ecx, [esp + 0x50]
mov byte [ebx + edi], 0
call fcn.00419300
push 0x11
push str.encoding_GB2312_
lea ecx, [esp + 0x54]
xor esi, esi
push ecx
mov dword [esp + 0x80], esi
call fcn.00430ce0
cmp eax, 0xffffffff
jne 0x42f184
push 0x11
push str.encoding_gb2312_
lea edx, [esp + 0x54]
push edx
call fcn.00430ce0
cmp eax, 0xffffffff
je 0x42f221
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
mov byte [esp + 0x74], 1
cmp dword [esp + 0x64], 0x10
mov esi, dword [esp + 0x50]
jae 0x42f1a9
lea esi, [esp + 0x50]
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
call fcn.00436ac0
mov edi, dword [esp + 0x48]
add esp, 4
push ebx
call fcn.0044245d
lea ecx, [edi + 1]
add esp, 4
push ecx
call fcn.00442462
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x48], esi
mov ebx, eax
mov eax, dword [esp + 0x34]
jae 0x42f1e8
lea eax, [esp + 0x34]
push edi
push eax
push ebx
call fcn.00447020
add esp, 0xc
mov byte [ebx + edi], 0
cmp dword [esp + 0x48], esi
jb 0x42f20a
mov edx, dword [esp + 0x34]
push edx
call fcn.004415cb
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
xor esi, esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
mov eax, edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.00430080
mov byte [ebx + edi], 0
cmp byte [ebx], 0
mov eax, ebx
mov esi, ebx
je 0x42f2ad
nop
mov cl, byte [esi]
cmp cl, 0xa
jne 0x42f270
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea eax, [esp + 0x1c]
call fcn.0042ff90
add esi, 1
mov eax, esi
jmp 0x42f2a8
cmp cl, 0xd
jne 0x42f2a5
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x42f288
push ecx
push eax
lea eax, [esp + 0x1c]
call fcn.0042ff90
push 0xa
mov eax, 1
lea edi, [esp + 0x18]
call fcn.004295e0
cmp byte [esi + 1], 0xa
jne 0x42f269
add esi, 2
mov eax, esi
jmp 0x42f2a8
add esi, 1
cmp byte [esi], 0
jne 0x42f250
sub esi, eax
je 0x42f2bc
push esi
push eax
lea eax, [esp + 0x1c]
call fcn.0042ff90
push ebx
call fcn.0044245d
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x2c], 0x10
jae 0x42f2d4
lea eax, [esp + 0x18]
mov edx, dword [ebp]
push 0
push 0
push eax
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
cmp byte [ebp + 0x44], 0
lea ecx, [esp + 0x14]
je 0x42f2ff
call fcn.00419340
lea ecx, [esp + 0x4c]
call fcn.00419340
xor al, al
jmp 0x42f30f
call fcn.00419340
lea ecx, [esp + 0x4c]
call fcn.00419340
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004414cc
add esp, 0x64
ret 4