Function at 0x42b500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b83f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push str.CTaskFile
lea ecx, [esp + 0x2c]
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__]
push str.Close_In
lea eax, [esp + 0x2c]
push eax
xor ebx, ebx
lea edi, [ebp + 0x40ac]
push ebx
push edi
mov dword [esp + 0x184], ebx
mov dword [esp + 0x28], edi
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 esi, 0xffffffff
add esp, 0x10
lea ecx, [esp + 0x28]
mov dword [esp + 0x174], esi
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 eax, [ebp + 0x4088]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0x24], esi
mov dword [esp + 0x174], 1
jne 0x42b62a
mov eax, dword [ebp + 0x70]
cmp eax, ebx
je 0x42b5a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x70], ebx
mov eax, dword [ebp + 0x6c]
cmp eax, ebx
je 0x42b5bb
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp + 0x6c], ebx
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x42b5cf
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov dword [ebp + 0x28], ebx
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x42b5e2
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp + 0x2c], ebx
push str.CTaskFile
lea ecx, [esp + 0x2c]
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__]
push str.Close_Out
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edi
mov byte [esp + 0x184], 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, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 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 edx, dword [esp + 0x14]
push edx
jmp 0x42b7c1
mov ecx, ebp
call fcn.0042aea0
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], esi
je 0x42b71a
cmp byte [ebp + 0x4083], bl
je 0x42b70a
mov eax, dword [ebp + 0x30]
test al, 7
jne 0x42b65f
shr eax, 3
jmp 0x42b663
shr eax, 3
inc eax
mov esi, eax
lea eax, [esi + 8]
push eax
mov dword [esp + 0x28], eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x42b6aa
push str.New_buf_error
lea ecx, [esp + 0xe8]
call fcn.00427030
mov esi, eax
mov ecx, 0x21
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
push 0x446b4c
lea ecx, [esp + 0x64]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [ebp + 0x3c]
mov dword [eax], edx
mov ecx, dword [ebp + 0x40]
mov dword [eax + 4], ecx
mov ecx, esi
mov esi, dword [ebp + 0x2c]
mov edx, ecx
shr ecx, 2
lea edi, [eax + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.00430a70
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x28], eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 0x28]
push ebx
push ebx
push eax
call dword [sym.imp.MSVCR71.dll_fseek]
mov ecx, dword [ebp + 0x28]
push ecx
push 1
lea edx, [esp + 0x3c]
push 4
push edx
call dword [sym.imp.MSVCR71.dll_fwrite]
mov edi, dword [esp + 0x40]
add esp, 0x28
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov dword [ebp + 0x28], ebx
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x42b72d
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp + 0x2c], ebx
mov eax, dword [ebp + 0x6c]
cmp eax, ebx
je 0x42b740
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp + 0x6c], ebx
mov ecx, dword [ebp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x43d5a0
lea ecx, [ebp + 8]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
call dword [0x43d1b0]
push 0x43d5a0
lea ecx, [ebp + 0x50]
call dword [0x43d1b0]
push str.CTaskFile
lea ecx, [esp + 0x48]
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__]
push str.Close_Out
lea edx, [esp + 0x48]
push edx
push ebx
push edi
mov byte [esp + 0x184], 3
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, 0x10
lea ecx, [esp + 0x44]
mov byte [esp + 0x174], 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 + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x16c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret