Function at 0x42ba80
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43b89a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.CTaskFile
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, dword [esp + 0x64]
push edi
push 0x44256c
lea ecx, [esp + 0x20]
push ecx
lea eax, [esi + 0x40ac]
push 0
push eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x28], eax
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
or ebx, 0xffffffff
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ebp, [esi + 0x4088]
push ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x24], ebx
mov dword [esp + 0x58], 1
je 0x42bc62
cmp edi, dword [esi + 0x30]
jae 0x42bc62
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x42bb41
mov edx, edi
and edx, 7
mov ecx, 7
sub ecx, edx
mov dl, 1
mov eax, edi
shr eax, 3
mov al, byte [ebx + eax]
shl dl, cl
and al, dl
mov byte [esp + 0x64], al
je 0x42bc62
mov ecx, esi
call fcn.0042aea0
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x6c]
mov ebp, dword [esp + 0x60]
mov eax, edi
shl eax, 0xe
add ecx, eax
mov dword [edx + 8], ecx
mov ebx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
xor ecx, ecx
add eax, ebx
adc ecx, edx
mov edx, dword [esi + 0x6c]
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
mov dword [eax + 0x10], ecx
lea ebx, [esi + 0x78]
mov dword [ebx], 0
mov dword [ebp], edi
mov byte [ebp + 4], 2
mov edx, dword [esi + 0x6c]
push edx
push ebx
lea eax, [ebp + 7]
push 0x4000
push eax
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x24]
push eax
mov byte [esi + 0x74], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42bc12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x42bc0b
cmp eax, 0x3e5
je 0x42bc02
push str.CTaskFile
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edx, dword [esp + 0x14]
push edi
push 0x442554
lea ecx, [esp + 0x3c]
push ecx
push 0
push edx
mov byte [esp + 0x6c], 2
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x10]
push eax
jmp 0x42bc63
mov ecx, esi
call fcn.0042aea0
jmp 0x42bc12
mov byte [esi + 0x4084], 1
mov bx, word [ebx]
mov word [ebp + 5], bx
mov al, byte [esi + 0x40a9]
test al, al
je 0x42bc3c
cmp dword [ebp], 0
jne 0x42bc3c
mov edx, dword [esp + 0x64]
movzx ecx, bx
push 0
push ecx
push edx
call fcn.0042f190
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
mov byte [esi + 0x74], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8