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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42abb8
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x44201c]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
push edi
mov eax, dword [0x44201c]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [esp + 0x2c], eax
lea eax, [ebx + 4]
lea esi, [eax + 0x18]
mov dword [esp + 0x10], eax
mov al, byte [esi]
test al, al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
je 0x42153a
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [esp + 0x328], edi
cmp byte [ebx + 0x20], 0
je 0x421555
cmp dword [ebx + 0x38], edi
jne 0x421555
mov al, byte [esi]
jmp 0x421f9c
mov eax, dword [0x45f978]
cmp eax, edi
jg 0x421561
xor eax, eax
inc eax
mov ecx, dword [ebx + 0xa0]
shr ecx, 0x14
cmp ecx, eax
jge 0x421581
call dword [sym.imp.MSVCR80.dll__getpid]
cmp dword [0x45fc04], eax
je 0x4215ad
mov dword [0x45fc04], eax
lea esi, [ebx + 0x94]
mov eax, dword [esi]
cmp eax, edi
je 0x421595
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
mov dword [esi], edi
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0xa0], edi
mov dword [ebx + 0xa4], 0x1f
cmp dword [ebp + 0x1c], 5
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x421777
call esi
cmp dword [0x45f97c], eax
je 0x421777
lea ecx, [esp + 0x284]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x328], 1
mov eax, dword [ebx + 0xa0]
mov dword [esp + 0x2a4], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0x2a0], eax
lea eax, [ebx + 0x78]
push eax
lea ecx, [esp + 0x288]
call dword [0x42f128]
mov eax, dword [0x45f97c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esp + 0x2a0]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2a4]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x54]
push eax
lea edi, [esp + 0x150]
mov byte [esp + 0x32c], 2
call fcn.00422d67
lea ecx, [esp + 0x58]
mov byte [esp + 0x328], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call esi
mov dword [0x45f97c], eax
lea eax, [esp + 0x14]
call fcn.00422e05
cmp dword [esp + 0x14], 0
mov esi, dword [0x45f8b4]
je 0x42168e
cmp dword [esp + 0x14], 0x45f8b0
je 0x421694
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], esi
je 0x421732
lea esi, [esp + 0x14]
call fcn.00422e84
add eax, 4
cmp dword [eax + 0x18], 0x10
jb 0x4216b5
mov eax, dword [eax + 4]
jmp 0x4216b8
add eax, 4
push 0x1b4
push 0x409
push eax
call dword [sym.imp.MSVCR80.dll_int___cdecl__open_char_const___int__int_]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4216eb
lea ecx, [esp + 0x284]
mov byte [esp + 0x328], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x421f96
push 0x433914
push eax
call dword [sym.imp.MSVCR80.dll__fdopen]
pop ecx
pop ecx
lea esi, [esp + 0x14]
mov dword [ebx + 0x94], eax
call fcn.00422e84
add eax, 4
push eax
lea ecx, [ebx + 0x78]
call dword [0x42f128]
call fcn.00422e84
mov eax, dword [eax + 0x24]
mov dword [ebx + 0xa0], eax
mov eax, dword [esp + 0x2a0]
mov dword [ebx + 0xa4], eax
jmp 0x421760
lea esi, [ebx + 0x94]
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x421748
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
mov dword [esi], edi
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0xa0], edi
mov dword [ebx + 0xa4], 0x1f
lea ecx, [esp + 0x284]
mov byte [esp + 0x328], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor edi, edi
cmp dword [ebx + 0x94], edi
jne 0x421ef5
inc dword [ebx + 0xa4]
mov eax, dword [ebx + 0xa4]
cmp eax, 0x20
jne 0x421f96
and dword [ebx + 0xa4], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCR80.dll__localtime64_s]
pop ecx
pop ecx
push 1
push 2
pop edi
push edi
lea ecx, [esp + 0x1ec]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0x328], 3
push dword [0x45fc04]
mov eax, dword [esp + 0x1e8]
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
push ecx
push 0x2e
push dword [esp + 0x3c]
lea eax, [esp + eax + 0x1f4]
mov byte [eax + 0x30], 0x30
lea eax, [esp + 0xac]
push edi
push eax
call esi
pop ecx
pop ecx
push dword [esp + 0x44]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xd8]
push edi
push eax
call esi
pop ecx
pop ecx
push dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xc4]
push edi
push eax
call esi
pop ecx
pop ecx
push 0x2d
push dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0xdc]
push edi
push eax
call esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x60]
inc ecx
push ecx
lea ecx, [esp + 0xb8]
push edi
push ecx
mov dword [esp + 0x54], eax
call esi
mov esi, eax
mov eax, dword [esp + 0x70]
pop ecx
pop ecx
add eax, 0x76c
push eax
lea ecx, [esp + 0x20c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, esi
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, dword [esp + 0x48]
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004023cc
pop ecx
pop ecx
mov ecx, ebx
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, dword [esp + 0x38]
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, dword [esp + 0x24]
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004023cc
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
cmp dword [ebp + 0x1c], 5
jne 0x42190b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ecx
lea eax, [esp + 0x1ec]
push 0x2e
push eax
call fcn.004023cc
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x1e8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov esi, dword [esp + 0x20]
mov byte [esp + 0x328], 4
cmp byte [esi + 0x20], 0
je 0x4219b6
lea ecx, [esp + 0x268]
call fcn.004212ed
test al, al
jne 0x421c5b
push str.Could_not_create_log_file
call dword [sym.imp.MSVCR80.dll_perror]
cmp dword [esp + 0x284], 0x10
mov eax, dword [esp + 0x270]
pop ecx
jae 0x42196e
lea eax, [esp + 0x26c]
push eax
push str.COULD_NOT_CREATE_LOGFILE__s__n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
lea ecx, [esp + 0x268]
mov byte [esp + 0x328], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x328], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
jmp 0x421f96
mov eax, dword [0x45e858]
test eax, eax
jne 0x4219c4
mov eax, str.UNKNOWN
push eax
lea ecx, [esp + 0x2c8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x2fc]
mov byte [esp + 0x328], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x2e0]
mov byte [esp + 0x328], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov esi, 0x430ddc
push esi
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0x1b4]
mov byte [esp + 0x330], 7
mov edi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push eax
call edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x328], 8
mov ecx, dword [ecx + 0x98]
push dword [ecx*4 + 0x43135c]
push eax
lea eax, [esp + 0x17c]
push eax
call edi
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x1d0]
push eax
mov byte [esp + 0x334], 9
call edi
add esp, 0xc
push eax
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x32c], 0xa
call dword [0x42f128]
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x328], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x174]
mov byte [esp + 0x328], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x328], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call fcn.00422b38
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x421acd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x18], esi
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x421adf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x421b9b
cmp eax, dword [ebx + 8]
jb 0x421af6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push 0x433954
push dword [esp + 0x1c]
lea eax, [esp + 0x198]
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x2c4]
push ecx
push eax
lea eax, [esp + 0x160]
push eax
mov byte [esp + 0x334], 0xb
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov esi, dword [esp + 0x20]
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x32c], 0xc
call dword [0x42f128]
lea ecx, [esp + 0x158]
mov byte [esp + 0x328], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x190]
mov byte [esp + 0x328], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x268]
call fcn.004212ed
test al, al
jne 0x421c1c
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 8]
jb 0x421b91
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x18], 0x1c
jmp 0x421ad1
push str.Could_not_create_logging_file
call dword [sym.imp.MSVCR80.dll_perror]
cmp dword [esp + 0x284], 0x10
mov eax, dword [esp + 0x270]
pop ecx
jae 0x421bbf
lea eax, [esp + 0x26c]
push eax
push str.COULD_NOT_CREATE_A_LOGGINGFILE__s_
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
lea ecx, [esp + 0x2e0]
mov byte [esp + 0x328], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2fc]
mov byte [esp + 0x328], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c4]
mov byte [esp + 0x328], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x421987
lea ecx, [esp + 0x2e0]
mov byte [esp + 0x328], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2fc]
mov byte [esp + 0x328], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c4]
mov byte [esp + 0x328], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 1
push 2
pop edi
push edi
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
cmp dword [ebp + 0x1c], 5
mov byte [esp + 0x328], 0xd
mov eax, dword [esp + 0xcc]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0xcc]
mov byte [eax + 0x30], 0x30
jne 0x421ca5
lea eax, [esp + 0xcc]
push 0x43399c
push eax
call fcn.0040a08a
pop ecx
pop ecx
push dword [esp + 0x30]
mov esi, dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
lea eax, [esp + 0xb8]
push edi
push eax
call esi
add esp, 4
push 0x3a
push dword [esp + 0x40]
mov dword [esp + 0x38], eax
lea eax, [esp + 0xb4]
push edi
push eax
call esi
pop ecx
pop ecx
push 0x3a
push dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x9c]
push edi
push eax
call esi
pop ecx
pop ecx
push 0x20
push dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0xac]
push edi
push eax
call esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x60]
push 0x2f
inc ecx
push ecx
lea ecx, [esp + 0xa4]
push edi
push ecx
mov dword [esp + 0x44], eax
call esi
pop ecx
pop ecx
mov esi, eax
mov eax, dword [esp + 0x6c]
push 0x2f
add eax, 0x76c
push eax
lea eax, [esp + 0xfc]
push str.Log_file_created_at:
push eax
call fcn.0040a08a
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004023cc
pop ecx
pop ecx
mov ecx, esi
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004023cc
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004023cc
pop ecx
pop ecx
mov ecx, ebx
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004023cc
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004023cc
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov esi, eax
call fcn.00423556
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
cmp dword [ebp + 0x1c], 5
lea eax, [esp + 0xcc]
jne 0x421de1
push str.____n____
push eax
call fcn.0040a08a
jmp 0x421de9
push 0xa
push eax
call fcn.004023cc
pop ecx
pop ecx
call fcn.00420c67
push eax
push ecx
lea eax, [esp + 0xd4]
push str.Running_on_machine:
push eax
call fcn.0040a08a
add esp, 0xc
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp dword [ebp + 0x1c], 5
pop ecx
pop ecx
lea eax, [esp + 0xcc]
jne 0x421e2a
push str.____n
push eax
call fcn.0040a08a
jmp 0x421e50
push 0xa
push ecx
push str.threadid___msg
push ecx
push str._nLog_line_format:__IWEF_mmdd_hh:mm:ss.uuuuuu
push eax
call fcn.0040a08a
add esp, 0xc
push eax
call fcn.0040a08a
add esp, 0xc
push eax
call fcn.004023cc
pop ecx
pop ecx
lea eax, [esp + 0x2a8]
push eax
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [esp + 0x2c0], 0x10
mov esi, dword [esp + 0x2bc]
mov eax, dword [esp + 0x2ac]
jae 0x421e86
lea eax, [esp + 0x2ac]
mov ebx, dword [esp + 0x20]
push dword [ebx + 0x94]
push esi
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fwrite]
add dword [ebx + 0xa0], esi
add dword [ebx + 0x9c], esi
add esp, 0x10
lea ecx, [esp + 0x2a8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x328], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x268]
mov byte [esp + 0x328], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x328], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
cmp byte [0x45e5df], 0
jne 0x421f78
mov edi, dword [sym.imp.MSVCR80.dll__errno]
call edi
and dword [eax], 0
push dword [ebx + 0x94]
mov esi, dword [ebp + 0x18]
push esi
push 1
push dword [esp + 0x38]
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp byte [0x45f7fe], 0
je 0x421f3b
call edi
cmp dword [eax], 0x1c
jne 0x421f3b
mov byte [0x45e5df], 1
jmp 0x421f96
add dword [ebx + 0xa0], esi
lea eax, [ebx + 0x9c]
add dword [eax], esi
cmp byte [ebp + 8], 0
mov eax, dword [eax]
jne 0x421f6f
cmp eax, 0xf4240
jae 0x421f6f
call fcn.004235e2
cmp edx, dword [ebx + 0xac]
jl 0x421f96
jg 0x421f6f
cmp eax, dword [ebx + 0xa8]
jb 0x421f96
mov esi, ebx
call fcn.004212a0
jmp 0x421f96
call fcn.004235e2
cmp edx, dword [ebx + 0xac]
jl 0x421f96
jg 0x421f8f
cmp eax, dword [ebx + 0xa8]
jb 0x421f96
mov byte [0x45e5df], 0
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
test al, al
je 0x421faa
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.00424d84
mov esp, ebp
pop ebp
ret 0x18