Function at 0x42a2c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b776
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
mov eax, dword [0x44e7a0]
push ebx
mov dword [esp + 0x284], eax
mov al, byte [ebp + 8]
test al, al
push esi
push edi
mov ebx, ecx
jne 0x42a689
cmp dword [ebx + 0x68], 0x10
jb 0x42a308
mov eax, dword [ebx + 0x54]
jmp 0x42a30b
lea eax, [ebx + 0x54]
push 0x43d76c
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
mov dword [ebx + 0x28], eax
jne 0x42a36d
push 0x7f
lea eax, [esp + 0xcc]
push str.Open_mapfile_error
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x147], 0
mov dword [esp + 0x148], 0
mov ecx, 0x21
lea esi, [esp + 0xc8]
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
push 0x44a1f0
lea ecx, [esp + 0x48]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov esi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push eax
call esi
mov edx, dword [ebx + 0x28]
push edx
call dword [sym.imp.MSVCR71.dll_ftell]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x2c]
add esp, 0x10
test eax, eax
je 0x42a3a2
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebx + 0x2c], 0
mov eax, dword [ebx + 0x28]
push 0
push 0
push eax
mov dword [esp + 0x20], 0
call esi
mov ecx, dword [ebx + 0x28]
mov edi, dword [sym.imp.MSVCR71.dll_fread]
push ecx
push 1
lea edx, [esp + 0x28]
push 4
push edx
call edi
add esp, 0x1c
cmp eax, 1
je 0x42a41d
push 0x7f
lea eax, [esp + 0xcc]
push str.Read_map_file_error
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x147], 0
mov dword [esp + 0x148], 0
mov ecx, 0x21
lea esi, [esp + 0xc8]
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
push 0x446b4c
lea ecx, [esp + 0x48]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [ebx + 0x28]
push edx
push 1
lea eax, [ebx + 0x3c]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x42a460
push str.Read_map_file_error
lea ecx, [esp + 0xcc]
call fcn.00427030
mov esi, eax
push 0x446b4c
lea eax, [esp + 0x48]
mov ecx, 0x21
lea edi, [esp + 0x48]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebx + 0x28]
push ecx
push 1
lea eax, [ebx + 0x40]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x42a4a3
push str.Read_map_file_error
lea ecx, [esp + 0xcc]
call fcn.00427030
push 0x446b4c
lea edx, [esp + 0x48]
mov esi, eax
mov ecx, 0x21
lea edi, [esp + 0x48]
push edx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov esi, dword [esp + 0xc]
add esi, 0xfffffff4
push esi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
test eax, eax
mov dword [ebx + 0x2c], eax
jne 0x42a4e7
push str.New_filemap_error
lea ecx, [esp + 0xcc]
call fcn.00427030
mov esi, eax
push 0x446b4c
lea eax, [esp + 0x48]
mov ecx, 0x21
lea edi, [esp + 0x48]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebx + 0x28]
push ecx
push 1
push esi
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x42a526
push str.Read_map_file_error
lea ecx, [esp + 0xcc]
call fcn.00427030
push 0x446b4c
lea edx, [esp + 0x48]
mov esi, eax
mov ecx, 0x21
lea edi, [esp + 0x48]
push edx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [esp + 0xc]
add eax, 0xfffffffc
push eax
mov dword [esp + 0x1c], eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
jne 0x42a56f
push str.New_buf_error
lea ecx, [esp + 0xcc]
call fcn.00427030
mov esi, eax
push 0x446b4c
lea eax, [esp + 0x48]
mov ecx, 0x21
lea edi, [esp + 0x48]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebx + 0x40]
mov dword [eax + 4], edx
mov ecx, esi
mov esi, dword [ebx + 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 + 0x18]
push ecx
push eax
call fcn.00430a70
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp esi, eax
je 0x42a5e3
push str.File_map_has_been_modified
lea ecx, [esp + 0xcc]
call fcn.00427030
mov esi, eax
push 0x446b4c
lea eax, [esp + 0x48]
mov ecx, 0x21
lea edi, [esp + 0x48]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
cmp dword [ebx + 0x20], 0x10
jb 0x42a5ee
mov eax, dword [ebx + 0xc]
jmp 0x42a5f1
lea eax, [ebx + 0xc]
xor esi, esi
push esi
push 0x8000080
push 3
push esi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or edi, 0xffffffff
cmp eax, edi
mov dword [ebx + 0x24], eax
jne 0x42a641
push str.Open_file_error
lea ecx, [esp + 0xcc]
call fcn.00427030
mov esi, eax
mov ecx, 0x21
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
push 0x44a1f0
lea ecx, [esp + 0x48]
push ecx
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [ebx + 0x48]
mov dword [ecx], esi
mov dword [ecx + 4], esi
cmp dword [ebx + 0x20], 0x10
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
jb 0x42a65c
mov edx, dword [ebx + 0xc]
jmp 0x42a65f
lea edx, [ebx + 0xc]
lea esi, [esp + 0x38]
push esi
push ecx
push eax
push edx
call fcn.00425a20
mov eax, dword [ebx + 0x24]
add esp, 0x10
cmp eax, edi
je 0x42ae75
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x24], edi
jmp 0x42ae75
mov al, byte [ebp + 0xc]
test al, al
je 0x42ac4b
cmp dword [ebx + 0x68], 0x10
jb 0x42a69f
mov eax, dword [ebx + 0x54]
jmp 0x42a6a2
lea eax, [ebx + 0x54]
push 0x43d76c
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, dword [sym.imp.MSVCR71.dll_fseek]
mov edi, dword [sym.imp.MSVCR71.dll_ftell]
add esp, 8
test eax, eax
mov dword [ebx + 0x28], eax
jne 0x42a6cd
mov byte [ebp + 0xc], 0
jmp 0x42a754
push 2
push 0
push eax
call esi
mov edx, dword [ebx + 0x28]
push edx
call edi
add esp, 0x10
cmp eax, 0xc
ja 0x42a740
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__]
cmp dword [ebx + 0x68], 0x10
mov dword [esp + 0x29c], 0
jb 0x42a707
mov eax, dword [ebx + 0x54]
jmp 0x42a70a
lea eax, [ebx + 0x54]
push eax
push 0x44237c
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x40ac]
push 0
push ecx
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 dword [esp + 0x29c], 0xffffffff
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 byte [ebp + 0xc], 0
mov edx, dword [ebx + 0x28]
push edx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov dword [ebx + 0x28], 0
push 0x43d5a0
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x25c]
push ecx
call fcn.00401fd0
add esp, 0xc
cmp dword [esp + 0x26c], 0x10
mov eax, dword [esp + 0x258]
mov dword [esp + 0x29c], 1
jae 0x42a790
lea eax, [esp + 0x258]
push 0x43d76c
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
jne 0x42a807
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__]
cmp dword [esp + 0x26c], 0x10
mov eax, dword [esp + 0x258]
mov byte [esp + 0x29c], 2
jae 0x42a7d2
lea eax, [esp + 0x258]
push eax
push 0x442364
lea edx, [esp + 0x24]
push edx
lea eax, [ebx + 0x40ac]
push 0
push 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 + 0x29c], 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 byte [ebp + 0xc], 0
jmp 0x42a811
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x254]
mov dword [esp + 0x29c], 0xffffffff
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 al, byte [ebp + 0xc]
test al, al
je 0x42ac4b
cmp dword [ebx + 0x68], 0x10
jb 0x42a83f
mov eax, dword [ebx + 0x54]
jmp 0x42a842
lea eax, [ebx + 0x54]
push 0x442360
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
mov dword [ebx + 0x28], eax
jne 0x42a8a2
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__]
cmp dword [ebx + 0x68], 0x10
mov dword [esp + 0x29c], 3
jb 0x42a87d
mov eax, dword [ebx + 0x54]
jmp 0x42a880
lea eax, [ebx + 0x54]
push eax
push 0x442344
lea ecx, [esp + 0x24]
push ecx
lea edx, [ebx + 0x40ac]
push 0
push edx
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
jmp 0x42ac36
push 2
push 0
push eax
call esi
mov eax, dword [ebx + 0x28]
push eax
call edi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x2c]
add esp, 0x10
test eax, eax
je 0x42a8cd
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebx + 0x2c], 0
mov ecx, dword [ebx + 0x28]
xor edi, edi
push edi
push edi
push ecx
mov dword [esp + 0x24], edi
call esi
mov edx, dword [ebx + 0x28]
mov esi, dword [sym.imp.MSVCR71.dll_fread]
push edx
push 1
lea eax, [esp + 0x2c]
push 4
push eax
call esi
add esp, 0x1c
cmp eax, 1
je 0x42a941
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__]
cmp dword [ebx + 0x68], 0x10
mov dword [esp + 0x29c], 4
jb 0x42a91d
mov eax, dword [ebx + 0x54]
jmp 0x42a920
lea eax, [ebx + 0x54]
push eax
push 0x44231c
lea ecx, [esp + 0x24]
push ecx
lea edx, [ebx + 0x40ac]
push edi
push edx
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
jmp 0x42ac36
mov eax, dword [ebx + 0x28]
push eax
push 1
lea ecx, [esp + 0x14]
push 4
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
call esi
add esp, 0x10
cmp eax, 1
je 0x42a9a9
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__]
cmp dword [ebx + 0x68], 0x10
mov dword [esp + 0x29c], 5
jb 0x42a985
mov eax, dword [ebx + 0x54]
jmp 0x42a988
lea eax, [ebx + 0x54]
push eax
push 0x4422f8
lea edx, [esp + 0x24]
push edx
lea eax, [ebx + 0x40ac]
push edi
push 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
jmp 0x42ac36
mov ecx, dword [ebx + 0x28]
push ecx
push 1
lea edx, [esp + 0x1c]
push 4
push edx
call esi
add esp, 0x10
cmp eax, 1
je 0x42aa08
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__]
cmp dword [ebx + 0x68], 0x10
mov dword [esp + 0x29c], 6
jb 0x42a9f4
mov eax, dword [ebx + 0x54]
push eax
push 0x4422f8
lea eax, [esp + 0x24]
push eax
push edi
jmp 0x42aaad
lea eax, [ebx + 0x54]
push eax
push 0x4422f8
lea eax, [esp + 0x24]
push eax
push edi
jmp 0x42aaad
mov edx, dword [esp + 0xc]
cmp edx, dword [ebx + 0x3c]
jne 0x42abe0
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x40]
jne 0x42abe0
mov edi, dword [esp + 0x10]
add edi, 0xfffffff4
push edi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
test eax, eax
mov dword [ebx + 0x2c], eax
jne 0x42aa66
push str.New_filemap_error
lea ecx, [esp + 0xcc]
call fcn.00427030
mov esi, eax
mov ecx, 0x21
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
push 0x446b4c
lea ecx, [esp + 0x48]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [ebx + 0x28]
push edx
push 1
push edi
push eax
call esi
add esp, 0x10
cmp eax, 1
je 0x42aac2
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__]
cmp dword [ebx + 0x68], 0x10
mov dword [esp + 0x29c], 8
jb 0x42aa9d
mov eax, dword [ebx + 0x54]
jmp 0x42aaa0
lea eax, [ebx + 0x54]
push eax
push 0x4422d4
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [ebx + 0x40ac]
push ecx
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
jmp 0x42ac36
mov eax, dword [esp + 0x10]
add eax, 0xfffffffc
push eax
mov dword [esp + 0x3c], eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x42ab0b
push str.New_buf_error
lea ecx, [esp + 0xcc]
call fcn.00427030
push 0x446b4c
lea edx, [esp + 0x48]
mov esi, eax
mov ecx, 0x21
lea edi, [esp + 0x48]
push edx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [ebx + 0x40]
mov dword [eax + 4], edx
mov esi, dword [ebx + 0x2c]
mov ecx, edi
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 + 0x38]
push ecx
push eax
call fcn.00430a70
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp esi, eax
lea ecx, [esp + 0x1c]
push str.CTaskFile
je 0x42ab8d
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.kmap
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0x40ac]
push 0
push ecx
mov dword [esp + 0x2ac], 9
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
jmp 0x42ac36
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 0x442298
lea edx, [esp + 0x20]
push edx
lea eax, [ebx + 0x40ac]
push 0
push eax
mov dword [esp + 0x2ac], 0xa
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 + 0x1c]
mov dword [esp + 0x29c], 0xffffffff
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 ecx, ebx
call fcn.00429bf0
call fcn.00429c50
jmp 0x42ae75
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__]
cmp dword [ebx + 0x68], 0x10
mov dword [esp + 0x29c], 7
jb 0x42ac05
mov eax, dword [ebx + 0x54]
jmp 0x42ac08
lea eax, [ebx + 0x54]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
push 0x442260
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0x40ac]
push edi
push ecx
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, 0x24
lea ecx, [esp + 0x1c]
mov dword [esp + 0x29c], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
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 eax, dword [ebx + 0x20]
cmp eax, 0x10
lea esi, [ebx + 8]
mov dword [esp + 0x29c], 0xb
jb 0x42ac75
mov eax, dword [esi + 4]
jmp 0x42ac78
lea eax, [esi + 4]
push eax
push 0x442250
lea edx, [esp + 0x24]
push edx
xor edi, edi
lea eax, [ebx + 0x40ac]
push edi
push 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 dword [esp + 0x29c], 0xffffffff
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 [ebx + 0x28]
cmp eax, edi
je 0x42acbf
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov dword [ebx + 0x28], edi
mov eax, dword [ebx + 0x2c]
cmp eax, edi
je 0x42acd2
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebx + 0x2c], edi
cmp dword [ebx + 0x68], 0x10
jb 0x42acdd
mov eax, dword [ebx + 0x54]
jmp 0x42ace0
lea eax, [ebx + 0x54]
mov edi, dword [sym.imp.MSVCR71.dll_fopen]
push 0x43f730
push eax
call edi
add esp, 8
test eax, eax
mov dword [ebx + 0x28], eax
jne 0x42ad44
push 0x7f
lea ecx, [esp + 0xcc]
push str.Create_map_file_error
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push 0x446b4c
lea edx, [esp + 0x48]
mov byte [esp + 0x14b], 0
mov dword [esp + 0x14c], 0
mov ecx, 0x21
lea esi, [esp + 0xcc]
lea edi, [esp + 0x48]
push edx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
push 0x43d5a0
lea eax, [esp + 0x274]
push esi
push eax
call fcn.00401fd0
add esp, 0xc
cmp dword [esp + 0x288], 0x10
mov eax, dword [esp + 0x274]
mov dword [esp + 0x29c], 0xc
jae 0x42ad7d
lea eax, [esp + 0x274]
push 0x43f730
push eax
call edi
add esp, 8
test eax, eax
jne 0x42adbf
push str.Create_temp_file_error
lea ecx, [esp + 0x1d4]
call fcn.00427030
mov esi, eax
mov ecx, 0x21
lea edi, [esp + 0x14c]
rep movsd dword es:[edi], dword [esi]
push 0x446b4c
lea ecx, [esp + 0x150]
push ecx
call sub.MSVCR71.dll__CxxThrowException
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov ecx, ebx
call fcn.00429bf0
mov eax, dword [ebx + 0x30]
test al, 7
jne 0x42addc
shr eax, 3
jmp 0x42ade0
shr eax, 3
inc eax
mov esi, eax
push esi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov dword [ebx + 0x2c], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x28]
mov edi, dword [sym.imp.MSVCR71.dll_fwrite]
push eax
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
mov dword [esp + 0x24], 0
call edi
mov edx, dword [ebx + 0x28]
push edx
push 1
lea eax, [ebx + 0x3c]
push 4
push eax
call edi
mov ecx, dword [ebx + 0x28]
push ecx
push 1
lea edx, [ebx + 0x40]
push 4
push edx
call edi
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
push eax
push 1
push esi
push ecx
call edi
mov edx, dword [ebx + 0x28]
add esp, 0x44
push edx
call dword [sym.imp.MSVCR71.dll_fflush]
xor eax, eax
add esp, 4
lea ecx, [esp + 0x270]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [esp + 0x29c], 0xffffffff
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 ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28c]
call fcn.00437d67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8