Function at 0x437460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479df8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x58], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
test edi, edi
jne 0x4374de
cmp byte [ebx + 0x2c], 0
jne 0x4374d7
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4374b6
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.00436150
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
xor al, al
jmp 0x4377b6
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x4374f4
mov ecx, esi
mov esi, dword [esi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x4374e5
push 2
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
push 0
push edi
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
call fcn.00461d68
add esp, 0xc
push edi
call fcn.004619ad
add esp, 4
mov esi, eax
push 0
push 0
push edi
call fcn.00461d68
add esp, 0xc
test esi, esi
jg 0x437561
cmp byte [ebx + 0x2c], 0
jne 0x4374d7
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 0xd
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437555
jmp 0x4374bd
lea eax, [esi + 1]
push eax
call fcn.0044e431
add esp, 4
mov edi, eax
mov dword [ebp - 0x50], edi
push dword [ebp - 0x4c]
mov byte [edi], 0
push 1
push esi
push edi
call fcn.004628bc
add esp, 0x10
push edi
cmp eax, 1
je 0x4375be
call fcn.0044e423
add esp, 4
cmp byte [ebx + 0x2c], 0
jne 0x4374d7
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4375b2
jmp 0x4374bd
lea eax, [edi + esi]
lea ecx, [ebp - 0x28]
mov byte [eax], 0
mov dword [ebp - 0x4c], eax
call fcn.0042ec50
push 0x11
push ecx
push str.encoding_GB2312_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00435ad0
cmp eax, 0xffffffff
jne 0x4375fe
push ecx
push str.encoding_gb2312_
lea ecx, [ebp - 0x28]
call fcn.004359f0
cmp eax, 0xffffffff
je 0x437673
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push eax
call fcn.0043a650
mov esi, dword [ebp - 0x30]
add esp, 4
push edi
call fcn.0044e423
add esp, 4
lea eax, [esi + 1]
push eax
call fcn.0044e431
add esp, 4
mov edi, eax
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], edi
cmovae eax, dword [ebp - 0x40]
push esi
push eax
push edi
call fcn.00452490
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [edi + esi]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4c], eax
call fcn.00411d80
mov dword [ebp - 0x44], 0x4a1ea4
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00436090
mov eax, dword [ebp - 0x4c]
mov ebx, edi
mov esi, dword [ebp - 0x44]
mov byte [eax], 0
mov eax, dword [ebp - 0x50]
cmp byte [eax], 0
je 0x437759
nop
mov al, byte [edi]
cmp al, 0xa
jne 0x4376ee
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [esi + 4]
sub ecx, ebx
inc ecx
add eax, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], eax
cmp eax, edx
jbe 0x4376cd
add eax, edx
lea ecx, [ebp - 0x44]
push eax
call fcn.00436090
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [esi]
push ecx
add eax, 8
add eax, esi
push ebx
push eax
call fcn.00450030
mov eax, dword [ebp - 0x54]
add esp, 0xc
inc edi
mov dword [esi], eax
mov ebx, edi
mov byte [eax + esi + 8], 0
jmp 0x437750
cmp al, 0xd
jne 0x43774f
mov eax, edi
sub eax, ebx
test eax, eax
jle 0x437707
push eax
push ebx
lea ecx, [ebp - 0x44]
call fcn.00436230
mov esi, dword [ebp - 0x44]
mov byte [ebp - 0x48], 0xa
mov ebx, dword [esi]
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jbe 0x437723
add eax, ebx
lea ecx, [ebp - 0x44]
push eax
call fcn.00436090
mov esi, dword [ebp - 0x44]
push 1
lea eax, [ebp - 0x48]
push eax
mov eax, dword [esi]
add eax, 8
add eax, esi
push eax
call fcn.00450030
mov dword [esi], ebx
add esp, 0xc
mov byte [ebx + esi + 8], 0
lea ebx, [edi + 1]
cmp byte [ebx], 0xa
jne 0x43774b
lea ebx, [edi + 2]
mov edi, ebx
jmp 0x437750
inc edi
cmp byte [edi], 0
jne 0x4376a0
sub edi, ebx
je 0x43776a
push edi
push ebx
lea ecx, [ebp - 0x44]
call fcn.00436230
mov esi, dword [ebp - 0x44]
push dword [ebp - 0x50]
call fcn.0044e423
mov edi, dword [ebp - 0x58]
lea eax, [esi + 8]
add esp, 4
mov ecx, edi
mov edx, dword [edi]
push 0
push 0
push eax
call dword [edx + 8]
cmp byte [edi + 0x2c], 0
sete bl
cmp esi, 0x4a1ea4
je 0x43779f
push esi
call fcn.0044e423
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4377b4
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00413b90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret 8