Function at 0x4030c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x611f49
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x6a0f4c]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov eax, dword [0x6a0f4c]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov edi, ecx
mov dword [esp + 0x28], eax
lea eax, [edi + 4]
mov cl, byte [eax + 0x18]
lea ebx, [eax + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
test cl, cl
je 0x403129
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [esp + 0x338], esi
cmp byte [edi + 0x20], 0
je 0x403151
cmp dword [edi + 0x38], esi
jne 0x403151
mov al, byte [ebx]
test al, al
je 0x403bf1
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x403beb
mov eax, dword [0x6a96cc]
cmp eax, esi
jg 0x40315f
mov eax, 1
mov edx, dword [edi + 0x84]
shr edx, 0x14
cmp edx, eax
jge 0x40317f
call dword [sym.imp.MSVCR90.dll__getpid]
cmp dword [0x6b83dc], eax
je 0x4031a9
mov dword [0x6b83dc], eax
mov eax, dword [edi + 0x78]
cmp eax, esi
je 0x403190
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [edi + 0x78], esi
mov dword [edi + 0x80], esi
mov dword [edi + 0x84], esi
mov dword [edi + 0x88], 0x1f
cmp dword [edi + 0x78], esi
jne 0x403b2d
inc dword [edi + 0x88]
mov eax, dword [edi + 0x88]
cmp eax, 0x20
jne 0x40313d
lea edx, [ebp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [edi + 0x88], esi
call dword [sym.imp.MSVCR90.dll__localtime64_s]
add esp, 8
push 1
push 2
lea ecx, [esp + 0x1a4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0x338], 1
mov ecx, dword [esp + 0x19c]
mov eax, dword [ecx + 4]
mov edx, dword [0x6b83dc]
mov ebx, dword [sym.imp.MSVCP90.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
lea eax, [esp + eax + 0x19c]
mov byte [eax + 0x30], 0x30
lea eax, [esp + 0x88]
push 2
push eax
mov dword [esp + 0x1c], edx
call ebx
mov ecx, dword [esp + 0x48]
add ecx, 0x76c
add esp, 8
push ecx
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCP90.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 esi, eax
test esi, esi
je 0x403255
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0x68]
push 2
push ecx
call ebx
mov edx, dword [esp + 0x4c]
add esp, 0x10
inc edx
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCP90.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 esi, eax
test esi, esi
je 0x40328d
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0xa0]
push 2
push ecx
call ebx
mov edx, dword [esp + 0x48]
add esp, 0x10
push 0x2d
push edx
mov ecx, esi
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCP90.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.00408090
mov esi, eax
add esp, 8
test esi, esi
je 0x4032d2
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0x88]
push 2
push ecx
call ebx
mov edx, dword [esp + 0x44]
add esp, 0x10
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCP90.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 esi, eax
test esi, esi
je 0x40330c
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0x78]
push 2
push ecx
call ebx
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCP90.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 esi, eax
test esi, esi
je 0x403343
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
add esp, 8
push ecx
push ecx
push 0x2e
push edx
mov ecx, esi
call dword [sym.imp.MSVCP90.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.00408090
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea eax, [esp + 0x29c]
push eax
lea ecx, [esp + 0x1a0]
call dword [sym.imp.MSVCP90.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 byte [esp + 0x338], 2
cmp byte [edi + 0x20], 0
je 0x40342a
lea ecx, [esp + 0x29c]
mov esi, edi
call fcn.00402e90
test al, al
jne 0x40385b
push str.Could_not_create_log_file
call dword [sym.imp.MSVCR90.dll_perror]
mov eax, dword [esp + 0x2a4]
add esp, 4
cmp dword [esp + 0x2b4], 0x10
jae 0x4033dc
lea eax, [esp + 0x2a0]
push eax
push str.COULD_NOT_CREATE_LOGFILE__s__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
lea ecx, [esp + 0x29c]
mov byte [esp + 0x338], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x19c]
mov byte [esp + 0x338], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov ecx, dword [esp + 0x24]
mov dl, byte [ecx]
jmp 0x403be2
mov eax, dword [0x6a8a14]
test eax, eax
jne 0x403438
mov eax, str.UNKNOWN
push eax
lea ecx, [esp + 0x2bc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x30c]
mov byte [esp + 0x338], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea esi, [esp + 0x30c]
mov byte [esp + 0x338], 4
call fcn.004017e0
push 0x6b83c0
lea ecx, [esp + 0x2f4]
call dword [sym.imp.MSVCP90.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 byte [esp + 0x338], 5
cmp dword [esp + 0x304], 0
jne 0x4034a5
push str.invalid_user
lea ecx, [esp + 0x2f4]
call dword [0x614444]
mov esi, dword [sym.imp.MSVCP90.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_]
push 0x2e
lea ecx, [esp + 0x2bc]
push ecx
lea edx, [esp + 0xe0]
push edx
call esi
add esp, 0xc
lea ecx, [esp + 0x30c]
push ecx
push eax
lea edx, [esp + 0xc4]
mov byte [esp + 0x340], 6
mov ebx, dword [sym.imp.MSVCP90.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__]
push edx
call ebx
add esp, 0xc
push 0x2e
push eax
lea eax, [esp + 0x134]
push eax
mov byte [esp + 0x344], 7
call esi
add esp, 0xc
lea ecx, [esp + 0x2f0]
push ecx
push eax
lea edx, [esp + 0x16c]
push edx
mov byte [esp + 0x344], 8
call ebx
add esp, 0xc
push str..log.
push eax
lea eax, [esp + 0xfc]
mov byte [esp + 0x340], 9
mov ebx, dword [sym.imp.MSVCP90.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 ebx
add esp, 0xc
mov byte [esp + 0x338], 0xa
mov ecx, dword [edi + 0x7c]
mov edx, dword [ecx*4 + 0x689c88]
push edx
push eax
lea eax, [esp + 0x188]
push eax
call ebx
add esp, 0xc
push 0x2e
push eax
lea ecx, [esp + 0xa8]
mov bl, 0xb
push ecx
mov byte [esp + 0x344], bl
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x2bc]
mov byte [esp + 0x33c], 0xc
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x338], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x180]
mov byte [esp + 0x338], 0xa
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xf4]
mov byte [esp + 0x338], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x164]
mov byte [esp + 0x338], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x338], 7
lea ecx, [esp + 0x12c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x338], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd8]
mov byte [esp + 0x338], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call fcn.00405970
mov ebx, eax
mov esi, dword [ebx + 0xc]
cmp esi, dword [ebx + 0x10]
jbe 0x403634
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov edi, edi
mov esi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], esi
jbe 0x403652
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
test eax, eax
je 0x40365c
cmp eax, ecx
je 0x403666
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
je 0x403756
test eax, eax
jne 0x40374b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x40368f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
push 0x689e6c
push eax
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.MSVCP90.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__]
add esp, 0xc
lea edx, [esp + 0x2b8]
push edx
push eax
lea eax, [esp + 0x118]
push eax
mov byte [esp + 0x344], 0xd
call dword [sym.imp.MSVCP90.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
push eax
lea ecx, [edi + 0x24]
mov byte [esp + 0x33c], 0xe
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x110]
mov byte [esp + 0x338], 0xd
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x148]
mov byte [esp + 0x338], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x29c]
mov esi, edi
call fcn.00402e90
test al, al
jne 0x403816
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x403752
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x40373d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add dword [esp + 0x18], 0x1c
mov eax, dword [esp + 0x14]
jmp 0x403640
mov eax, dword [eax]
jmp 0x403680
mov eax, dword [eax]
jmp 0x40372e
push str.Could_not_create_logging_file
call dword [sym.imp.MSVCR90.dll_perror]
mov eax, dword [esp + 0x2a4]
add esp, 4
cmp dword [esp + 0x2b4], 0x10
jae 0x40377c
lea eax, [esp + 0x2a0]
push eax
push str.COULD_NOT_CREATE_A_LOGGINGFILE__s_
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
lea ecx, [esp + 0x2f0]
mov byte [esp + 0x338], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30c]
mov byte [esp + 0x338], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x338], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x29c]
mov byte [esp + 0x338], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x19c]
mov byte [esp + 0x338], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov edx, dword [esp + 0x24]
mov al, byte [edx]
test al, al
je 0x403bf1
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x403beb
lea ecx, [esp + 0x2f0]
mov byte [esp + 0x338], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30c]
mov byte [esp + 0x338], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x338], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebx, dword [sym.imp.MSVCP90.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
push 1
push 2
lea ecx, [esp + 0x224]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0x338], 0xf
cmp dword [0x6a96a8], 0
mov edx, dword [esp + 0x21c]
mov eax, dword [edx + 4]
lea eax, [esp + eax + 0x21c]
mov byte [eax + 0x30], 0x30
jne 0x4038b2
mov esi, 0x6a9694
call fcn.004017e0
cmp dword [0x6a96a8], 0
jne 0x4038b2
push str._unknown_
mov ecx, esi
call dword [0x614444]
lea eax, [esp + 0x90]
push 2
push eax
call ebx
mov ecx, dword [esp + 0x48]
add esp, 8
push 0x2f
add ecx, 0x76c
push ecx
lea edx, [esp + 0x224]
push str.Log_file_created_at:
push edx
mov dword [esp + 0x24], eax
call fcn.00408230
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.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.00408090
mov esi, eax
add esp, 8
test esi, esi
je 0x403905
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0x60]
push 2
push ecx
call ebx
mov edx, dword [esp + 0x4c]
add esp, 0x10
push 0x2f
inc edx
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP90.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.00408090
mov esi, eax
add esp, 8
test esi, esi
je 0x403948
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0x70]
push 2
push ecx
call ebx
mov edx, dword [esp + 0x48]
add esp, 0x10
push 0x20
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP90.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.00408090
mov esi, eax
add esp, 8
test esi, esi
jne 0x403987
xor ecx, ecx
jmp 0x40398e
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
call eax
lea ecx, [esp + 0x58]
push 2
push ecx
call ebx
mov edx, dword [esp + 0x44]
add esp, 0x10
push 0x3a
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP90.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.00408090
mov esi, eax
add esp, 8
test esi, esi
je 0x4039d0
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0x80]
push 2
push ecx
call ebx
mov edx, dword [esp + 0x40]
add esp, 0x10
push 0x3a
push edx
mov ecx, esi
mov ebx, eax
call dword [sym.imp.MSVCP90.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.00408090
mov esi, eax
add esp, 8
test esi, esi
je 0x403a13
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push eax
call edx
add esp, 8
mov eax, dword [esp + 0x2c]
push 0xa
push ecx
push str.threadid_file:line__msg
push ecx
push str.Log_line_format:__IWEF_mmdd_hh:mm:ss.uuuuuu
push ecx
push 0xa
push 0x6a9694
push str.Running_on_machine:
push ecx
push 0xa
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.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.00408090
add esp, 0xc
push eax
call fcn.00408230
add esp, 8
push eax
call dword [sym.imp.MSVCP90.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__]
add esp, 8
push eax
call fcn.00408090
add esp, 0xc
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408090
add esp, 8
lea ecx, [esp + 0x2d4]
push ecx
lea ecx, [esp + 0x220]
call dword [sym.imp.MSVCP90.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 + 0x2ec], 0x10
mov esi, dword [esp + 0x2e8]
mov eax, dword [esp + 0x2d8]
jae 0x403abe
lea eax, [esp + 0x2d8]
mov edx, dword [edi + 0x78]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add dword [edi + 0x84], esi
add dword [edi + 0x80], esi
add esp, 0x10
lea ecx, [esp + 0x2d4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x21c]
mov byte [esp + 0x338], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x29c]
mov byte [esp + 0x338], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x19c]
mov byte [esp + 0x338], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov ebx, dword [esp + 0x24]
xor esi, esi
cmp byte [0x6a89ec], 0
jne 0x403bc2
mov ebx, dword [sym.imp.MSVCR90.dll__errno]
call ebx
mov ecx, dword [esp + 0x28]
mov dword [eax], esi
mov eax, dword [edi + 0x78]
mov esi, dword [ebp + 0x18]
push eax
push esi
push 1
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp byte [0x6a95d9], 0
je 0x403b78
call ebx
cmp dword [eax], 0x1c
jne 0x403b78
mov byte [0x6a89ec], 1
jmp 0x4037fe
add dword [edi + 0x80], esi
add dword [edi + 0x84], esi
cmp byte [ebp + 8], 0
mov eax, dword [edi + 0x80]
jne 0x403bb6
cmp eax, 0xf4240
jae 0x403bb6
call fcn.00408f60
cmp edx, dword [edi + 0x94]
jl 0x4037fe
jg 0x403bb6
cmp eax, dword [edi + 0x90]
jb 0x4037fe
mov esi, edi
call fcn.00402e30
jmp 0x4037fe
call fcn.00408f60
cmp edx, dword [edi + 0x94]
jl 0x403be0
jg 0x403bd9
cmp eax, dword [edi + 0x90]
jb 0x403be0
mov byte [0x6a89ec], 0
mov dl, byte [ebx]
test dl, dl
je 0x403bf1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.005fff12
mov esp, ebp
pop ebp
ret 0x14