Function at 0x40cc9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ebp + 8]
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x4d], al
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test esi, esi
je 0x40cea0
mov dword [ebp - 0x20], 0x49e1d8
mov dword [esp], 0x49e1d8
call dword [method.QReadWriteLock.lockForRead__]
mov eax, 0x49e1d8
or eax, 1
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040b070
push ebx
mov edi, dword [ebp - 0x24]
mov dword [esp + 4], 0x4874ef
mov dword [esp], edi
call sub.msvcrt.dll_fopen
mov ebx, eax
lea esi, [edi - 0xc]
cmp esi, 0x486534
jne 0x40cfc3
test ebx, ebx
je 0x40ce74
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov esi, eax
test eax, eax
jle 0x40cf28
lea eax, [eax + 1]
mov dword [esp], eax
call fcn.00477550
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x40ce74
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov edx, dword [ebp - 0x4c]
mov dword [esp], edx
call sub.msvcrt.dll_fread
dec eax
je 0x40cf1c
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov edx, dword [ebp - 0x4c]
mov al, byte [edx]
cmp al, 0xff
je 0x40ceb0
cmp al, 0xef
je 0x40cf3c
mov dword [ebp - 0x30], 0x486540
mov dword [esp + 4], 0x3c
mov edx, dword [ebp - 0x4c]
mov dword [esp], edx
call sub.msvcrt.dll_strchr
mov edx, eax
test eax, eax
je 0x40ce5c
xor eax, eax
mov ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
lea esi, [ebp - 0x30]
mov dword [esp], esi
call fcn.0045128c
lea ebx, [ebp - 0x34]
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040bce8
push edx
mov dword [esp + 4], ebx
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call fcn.00451370
mov eax, dword [ebp - 0x34]
lea ebx, [eax - 0xc]
mov edx, 0x486534
cmp edx, ebx
jne 0x40d027
mov eax, dword [ebp - 0x30]
lea ebx, [eax - 0xc]
mov edx, 0x486534
cmp edx, ebx
jne 0x40cff5
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.00477510
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x40ce58
cmp byte [ebp - 0x4d], 0
jne 0x40cf6c
xor eax, eax
jmp 0x40ce79
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.00477510
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.004525fc
nop
mov eax, 0xffffffff
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x40ce97
test dl, 1
je 0x40ce97
and edx, 0xfffffffe
mov dword [esp], edx
mov dword [ebp - 0x54], eax
call dword [method.QReadWriteLock.unlock__]
mov eax, dword [ebp - 0x54]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
cmp byte [edx + 1], 0xfe
jne 0x40cdad
mov dword [ebp - 0x28], 0x486530
sub esi, 2
mov eax, esi
shr eax, 0x1f
add eax, esi
sar eax, 1
mov dword [esp + 8], eax
mov eax, edx
add eax, 2
mov dword [esp + 4], eax
lea esi, [ebp - 0x28]
mov dword [esp], esi
call fcn.0044a790
lea ebx, [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040bdd4
push ecx
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00451370
mov dword [esp], ebx
call fcn.004525fc
mov dword [esp], esi
call fcn.0044bbe0
jmp 0x40ce37
mov eax, dword [ebp - 0x4c]
mov byte [eax + esi], 0
jmp 0x40cd90
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, 0xffffffff
jmp 0x40ce79
mov edx, dword [ebp - 0x4c]
cmp byte [edx + 1], 0xbb
jne 0x40cdad
cmp byte [edx + 2], 0xbf
jne 0x40cdad
mov eax, edx
add eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00451258
jmp 0x40ce37
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Huawei_Wuminghui_63386
lea esi, [ebp - 0x38]
mov dword [esp], esi
call fcn.0045204c
lea ebx, [ebp - 0x3c]
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0040b6d0
push edi
mov dword [esp + 4], ebx
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call fcn.00451370
mov dword [esp], ebx
call fcn.004525fc
mov dword [esp], esi
call fcn.004525fc
xor eax, eax
jmp 0x40ce79
cmp dword [0x49e25c], 0
jne 0x40d055
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x40cd0e
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00450b20
jmp 0x40cd0e
cmp dword [0x49e25c], 0
jne 0x40d095
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40ce37
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00450b20
jmp 0x40ce37
cmp dword [0x49e25c], 0
jne 0x40d0ad
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40ce24
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00450b20
jmp 0x40ce24
mov dword [esp + 4], 0xffffffff
sub edi, 4
mov dword [esp], edi
call fcn.0042a360
jmp 0x40cfd9
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a360
jmp 0x40d00b
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a360
jmp 0x40d039