Function at 0x42b7e0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b873
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebx + 0x4088]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.CTaskFile
lea ecx, [esp + 0x20]
mov dword [esp + 0x258], 0
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 esi, dword [ebp + 8]
mov ecx, dword [esi]
push ecx
push 0x442544
lea edx, [esp + 0x24]
push edx
lea eax, [ebx + 0x40ac]
push 0
push eax
mov byte [esp + 0x268], 1
mov dword [esp + 0x2c], 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__]
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x254], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebx + 0x24], 0xffffffff
jne 0x42b897
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
call fcn.0042aea0
lea eax, [ebx + 0x7c]
mov edi, eax
mov ecx, 0x1001
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x30]
jae 0x42b94a
mov edi, dword [ebx + 0x2c]
test edi, edi
je 0x42b8dd
mov esi, eax
and eax, 7
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
shr esi, 3
mov cl, byte [edi + esi]
and cl, al
mov byte [esp + 0x13], cl
je 0x42b94a
push str.CTaskFile
lea ecx, [esp + 0x20]
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 [ebp + 8]
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
push eax
push 0x442530
lea ecx, [esp + 0x24]
push ecx
push 0
push edx
mov byte [esp + 0x268], 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 + 0x1c]
mov byte [esp + 0x254], 0
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 + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebx + 0x40a9]
test al, al
mov esi, dword [ebp + 8]
je 0x42b96f
cmp dword [esi], 0
jne 0x42b96f
movzx ecx, word [esi + 5]
push 0
push ecx
lea edx, [esi + 7]
push edx
call fcn.0042f0e0
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x6c]
shl eax, 0xe
add ecx, eax
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x48]
xor ecx, ecx
add eax, edx
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x6c]
adc ecx, eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x70]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 0x6c]
movzx eax, word [ebx + 0x81]
push edx
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x78]
push esi
push eax
lea ecx, [ebx + 0x83]
push ecx
push edx
mov byte [ebx + 0x74], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b9de
mov ecx, ebx
mov byte [ebx + 0x74], 1
call fcn.00429d40
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x42b92b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x42ba39
cmp eax, 0x3e5
je 0x42ba28
push eax
push str.Write_packet_to_file_error
lea ecx, [esp + 0x148]
mov byte [ebx + 0x74], 1
call fcn.00409960
mov esi, eax
push 0x446b4c
lea eax, [esp + 0xc0]
mov ecx, 0x21
lea edi, [esp + 0xc0]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov ecx, ebx
call fcn.0042aea0
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x42b92b
movzx edx, word [ebx + 0x81]
cmp edx, dword [esi]
mov byte [ebx + 0x74], 1
jne 0x42ba4f
mov ecx, ebx
call fcn.00429d40
push 0x26
push str.Write_packet_to_file_error:_file_eof
lea ecx, [esp + 0x1cc]
call fcn.00409960
mov esi, eax
push 0x446b4c
lea eax, [esp + 0x3c]
mov ecx, 0x21
lea edi, [esp + 0x3c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
int3