Function at 0x1016f940
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b0320
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x16c], eax
lea eax, [ebx + 4]
mov cl, byte [eax + 0x18]
lea edi, [eax + 0x18]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x164], edi
test cl, cl
je 0x1016f9a5
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebx + 0x20], 0
mov dword [ebp - 4], 0
je 0x1016f9bc
cmp dword [ebx + 0x34], 0
je 0x1017073b
call fcn.101617f0
mov edx, dword [ebx + 0x84]
shr edx, 0x14
cmp edx, eax
jge 0x1016f9e6
call fcn.101677b0
mov esi, eax
call sub.MSVCR100.dll__getpid
cmp dword [esi + 0x1c], eax
je 0x1017001c
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x1016f9f6
push eax
call sub.MSVCR100.dll_fclose
add esp, 4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x154]
push ecx
call sub.MSVCR100.dll__localtime64_s
add esp, 8
push 1
push 2
lea ecx, [ebp - 0x20c]
call fcn.10168370
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0x20c]
mov byte [ebp - 4], 1
mov byte [eax + 0x40], 0x30
call fcn.101677b0
mov eax, dword [eax + 0x1c]
push 0
lea ecx, [ebp - 0x29c]
push 2
push ecx
mov dword [ebp - 0x15c], eax
call fcn.101aeafe
mov edx, dword [ebp - 0x140]
add esp, 0xc
add edx, 0x76c
push edx
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.10167af0
mov edi, eax
test edi, edi
je 0x1016fa78
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x2ec]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x144]
add esp, 0x18
inc edx
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
mov edi, eax
test edi, edi
je 0x1016fab6
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x26c]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x148]
add esp, 0x18
push 0x2d
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
push eax
call fcn.10167320
mov edi, eax
add esp, 8
test edi, edi
je 0x1016fafe
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x2cc]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x14c]
add esp, 0x18
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
mov edi, eax
test edi, edi
je 0x1016fb3b
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x28c]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x150]
add esp, 0x18
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
mov edi, eax
test edi, edi
je 0x1016fb78
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x154]
add esp, 0xc
push ecx
push 0x2e
push edx
mov ecx, edi
call fcn.10167af0
push eax
call fcn.10167320
add esp, 8
mov ecx, eax
call fcn.10167af0
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x20c]
call fcn.1016b660
push 0xffffffffffffffff
push 0
lea esi, [ebx + 0x24]
push esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
call fcn.100481c0
cmp dword [ebp - 0x50], 0x10
mov edi, dword [ebp - 0x64]
mov byte [ebp - 4], 3
jae 0x1016fbf7
lea edi, [ebp - 0x64]
add ebx, 0x5c
push ebx
lea ecx, [ebp - 0x10c]
push esi
push ecx
call fcn.1016ab20
lea edx, [ebp - 0xf0]
push edx
push eax
lea eax, [ebp - 0xd4]
push eax
mov byte [ebp - 4], 4
call fcn.1016abe0
add esp, 0x18
cmp dword [ebp - 0xf8], 0x10
mov byte [ebp - 4], 6
jb 0x1016fc3f
mov ecx, dword [ebp - 0x10c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xd4]
xor ebx, ebx
cmp dword [ebp - 0xc0], 0x10
mov dword [ebp - 0xf8], 0xf
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
jae 0x1016fc6c
lea eax, [ebp - 0xd4]
push eax
push edi
call sub.MSVCR100.dll_rename
add esp, 8
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.100481c0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.100481c0
mov eax, dword [ebp - 0x54]
mov edx, 0xf
dec eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 8
xor esi, esi
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x48]
mov ecx, ebx
cmp edi, 0x10
jae 0x1016fcc4
lea ecx, [ebp - 0x48]
cmp byte [ecx + eax], 0x2f
je 0x1016fcfc
cmp edi, 0x10
mov edi, ebx
jae 0x1016fcd4
lea edi, [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
cmp edx, 0x10
jae 0x1016fcdf
lea ecx, [ebp - 0x2c]
mov dl, byte [edi + eax]
mov byte [ecx + esi], dl
cmp dword [ebp - 0x34], 0x10
mov ecx, dword [ebp - 0x48]
jae 0x1016fcf1
lea ecx, [ebp - 0x48]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x18]
dec eax
inc esi
jmp 0x1016fcb4
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
mov ecx, eax
cmp edx, edi
jae 0x1016fd0f
lea ecx, [ebp - 0x2c]
mov eax, ecx
mov edx, dword [ebp - 0x16c]
add eax, dword [ebp - 0x1c]
push edx
push ecx
xor ebx, ebx
mov esi, 0xf
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.10168f80
cmp dword [ebp - 0x18], edi
jb 0x1016fd50
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
cmp eax, edi
jae 0x1016fd87
mov eax, dword [ebp - 0x8c]
inc eax
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_memmove
mov eax, dword [ebp - 0x88]
add esp, 0xc
jmp 0x1016fd90
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], edi
jb 0x1016fdb0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x15c], ecx
jmp 0x1016fdb9
lea edx, [ebp - 0x48]
mov dword [ebp - 0x15c], edx
mov esi, dword [ebp - 0x2c]
cmp eax, edi
jae 0x1016fdc3
lea esi, [ebp - 0x2c]
test byte [0x10455eec], 1
jne 0x1016fdf2
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov byte [ebp - 4], 0xa
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [0x10455ea8]
mov ecx, dword [ebp - 0x15c]
push eax
push esi
mov esi, dword [ebp - 0x168]
push ecx
mov ecx, esi
call fcn.1016eb40
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], 0x1f
cmp dword [ebp - 0x18], edi
jb 0x1016fe37
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], edi
jb 0x1016fe57
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0xc0], edi
jb 0x1016fe78
mov ecx, dword [ebp - 0xd4]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], 0
cmp dword [ebp - 0x50], edi
jb 0x1016fe9c
mov edx, dword [ebp - 0x64]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0xdc], edi
jb 0x1016febd
mov eax, dword [ebp - 0xf0]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], 0
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 0x174], ecx
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
test byte [ebp - 0x1c8], 1
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x170], ecx
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
je 0x1016ff20
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x1f8]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x1e8]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x1d8]
mov dword [edx], ebx
mov eax, dword [ebp - 0x1f4]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x1e4]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x1d4]
mov dword [edx], ebx
and dword [ebp - 0x1c8], 0xfffffffe
mov dword [ebp - 0x1cc], ebx
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1d0]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x15c], eax
cmp eax, ebx
je 0x1016ffd0
mov edi, dword [eax]
cmp edi, ebx
je 0x1016ffc1
push ebx
lea ecx, [ebp - 0x160]
call fcn.1016030b
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x1016ff9d
cmp eax, 0xffffffff
jae 0x1016ff9d
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [ebp - 0x160]
and esi, edi
call fcn.10160333
cmp esi, ebx
je 0x1016ffc1
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [ebp - 0x15c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x204]
mov byte [ebp - 4], 0xb
call fcn.10160364
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x1bc]
mov dword [ebp + edx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov byte [ebp - 4], 0
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1015ff0a
mov ebx, dword [ebp - 0x168]
mov edi, dword [ebp - 0x164]
add esp, 4
cmp dword [ebx + 0x78], 0
mov esi, 1
jne 0x101705bf
add dword [ebx + 0x88], esi
cmp dword [ebx + 0x88], 0x20
jne 0x101706e8
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x130]
push ecx
mov dword [ebx + 0x88], 0
call sub.MSVCR100.dll__localtime64_s
add esp, 8
push esi
push 2
lea ecx, [ebp - 0x394]
call fcn.10168370
mov edx, dword [ebp - 0x394]
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0x394]
mov byte [ebp - 4], 0xd
mov byte [eax + 0x40], 0x30
call fcn.101677b0
mov eax, dword [eax + 0x1c]
push 0
lea ecx, [ebp - 0x2fc]
push 2
push ecx
mov dword [ebp - 0x160], eax
call fcn.101aeafe
mov edx, dword [ebp - 0x11c]
add esp, 0xc
add edx, 0x76c
push edx
lea ecx, [ebp - 0x394]
mov esi, eax
call fcn.10167af0
mov edi, eax
test edi, edi
je 0x101700c9
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x22c]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x120]
add esp, 0x18
inc edx
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
mov edi, eax
test edi, edi
je 0x10170107
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x23c]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x124]
add esp, 0x18
push 0x2d
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
push eax
call fcn.10167320
mov edi, eax
add esp, 8
test edi, edi
je 0x1017014f
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x25c]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x128]
add esp, 0x18
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
mov edi, eax
test edi, edi
je 0x1017018c
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x27c]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x12c]
add esp, 0x18
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
mov edi, eax
test edi, edi
je 0x101701c9
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x130]
add esp, 0xc
push ecx
push 0x2e
push edx
mov ecx, edi
call fcn.10167af0
push eax
call fcn.10167320
add esp, 8
mov ecx, eax
call fcn.10167af0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x394]
call fcn.1016b660
cmp byte [ebx + 0x20], 0
mov byte [ebp - 4], 0xe
je 0x10170277
lea ecx, [ebp - 0x80]
push ecx
mov ecx, ebx
call fcn.1016e530
test al, al
jne 0x10170277
cmp dword [ebp - 0x6c], 0x10
jb 0x1017023a
mov edx, dword [ebp - 0x80]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 0
call fcn.10166b10
mov eax, dword [ebp - 0x164]
mov cl, byte [eax]
test cl, cl
je 0x1017074e
mov edx, dword [ebp - 0x158]
push edx
jmp 0x10170748
push 1
push 2
lea ecx, [ebp - 0x42c]
call fcn.10168370
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x42c]
mov byte [ebp - 4], 0xf
mov byte [eax + 0x40], 0x30
call fcn.10167810
cmp dword [eax + 0x10], 0
jne 0x101702d3
call fcn.10167810
mov ecx, eax
call fcn.10161770
call fcn.10167810
cmp dword [eax + 0x10], 0
jne 0x101702d3
call fcn.10167810
push 9
push 0x1028f70c
mov ecx, eax
call fcn.10048340
call fcn.10167810
push 0
lea ecx, [ebp - 0x21c]
push 2
push ecx
mov dword [ebp - 0x160], eax
call fcn.101aeafe
mov edx, dword [ebp - 0x11c]
add esp, 0xc
push 0x2f
add edx, 0x76c
push edx
mov esi, eax
lea eax, [ebp - 0x42c]
push str.Log_file_created_at:
push eax
call fcn.10167060
add esp, 8
mov ecx, eax
call fcn.10167af0
push eax
call fcn.10167320
mov edi, eax
add esp, 8
test edi, edi
je 0x10170333
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
add eax, edi
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi]
push ecx
push eax
call edx
push 0
lea eax, [ebp - 0x2bc]
push 2
push eax
call fcn.101aeafe
mov ecx, dword [ebp - 0x120]
add esp, 0x18
inc ecx
push 0x2f
push ecx
mov ecx, edi
mov esi, eax
call fcn.10167af0
push eax
call fcn.10167320
mov edi, eax
add esp, 8
test edi, edi
je 0x1017037c
mov edx, dword [edi]
mov eax, dword [edx + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x2dc]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x124]
add esp, 0x18
push 0x20
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
push eax
call fcn.10167320
mov edi, eax
add esp, 8
test edi, edi
je 0x101703c4
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x2ac]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x128]
add esp, 0x18
push 0x3a
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
push eax
call fcn.10167320
mov edi, eax
add esp, 8
test edi, edi
je 0x1017040c
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
push 0
lea ecx, [ebp - 0x24c]
push 2
push ecx
call fcn.101aeafe
mov edx, dword [ebp - 0x12c]
add esp, 0x18
push 0x3a
push edx
mov ecx, edi
mov esi, eax
call fcn.10167af0
push eax
call fcn.10167320
mov edi, eax
add esp, 8
test edi, edi
je 0x10170454
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x130]
add esp, 0xc
push 0xa
push str.threadid:_msg
push str.Log_line_format:__IWEF_mmdd_hh:mm:ss.mmm
push 0xa
push ecx
push str.Running_on_machine:
push 0xa
push edx
mov ecx, edi
call fcn.10167af0
push eax
call fcn.10167320
add esp, 8
push eax
call fcn.10167060
add esp, 8
push eax
call fcn.100561b0
add esp, 8
push eax
call fcn.10167320
add esp, 8
push eax
call fcn.10167060
add esp, 8
push eax
call fcn.10167060
add esp, 8
push eax
call fcn.10167320
add esp, 8
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x42c]
call fcn.1016b660
test byte [0x10455d90], 1
mov esi, dword [ebp - 0xa8]
jne 0x1017050c
or dword [0x10455d90], 1
mov ecx, 0x10455b90
call fcn.101651b0
push 0x101b4ca0
call fcn.1015f6af
add esp, 4
mov ecx, dword [ebx + 0x7c]
cmp ecx, dword [0x10455d68]
jne 0x10170548
cmp dword [ebp - 0xa4], 0x10
mov eax, dword [ebp - 0xb8]
jae 0x1017052c
lea eax, [ebp - 0xb8]
mov edx, dword [ebx + 0x78]
push edx
push esi
push 1
push eax
call sub.MSVCR100.dll_fwrite
add dword [ebx + 0x84], esi
add esp, 0x10
add dword [ebx + 0x80], esi
cmp dword [ebp - 0xa4], 0x10
jb 0x10170560
mov eax, dword [ebp - 0xb8]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 0xf
xor edi, edi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], edi
mov byte [ebp - 0xb8], 0
mov byte [ebp - 4], 0xe
call fcn.10166b10
cmp dword [ebp - 0x6c], 0x10
jb 0x1017059b
mov ecx, dword [ebp - 0x80]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 0
call fcn.10166b10
mov edi, dword [ebp - 0x164]
mov esi, 1
test byte [0x10455d90], 1
jne 0x101705e5
or dword [0x10455d90], esi
mov ecx, 0x10455b90
call fcn.101651b0
push 0x101b4ca0
call fcn.1015f6af
add esp, 4
cmp byte [0x10455bac], 0
jne 0x101706f7
call sub.MSVCR100.dll__errno
mov dword [eax], 0
test byte [0x10455d90], 1
jne 0x10170623
or dword [0x10455d90], esi
mov ecx, 0x10455b90
call fcn.101651b0
push 0x101b4ca0
call fcn.1015f6af
add esp, 4
mov edx, dword [ebx + 0x7c]
cmp edx, dword [0x10455d68]
jne 0x101706b8
mov eax, dword [ebx + 0x78]
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x16c]
push eax
push esi
push 1
push ecx
call sub.MSVCR100.dll_fwrite
add esp, 0x10
test byte [0x10455eec], 1
jne 0x1017067a
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov byte [ebp - 4], 0x10
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
mov byte [ebp - 4], 0
cmp byte [0x10455ea4], 0
je 0x101706ac
call sub.MSVCR100.dll__errno
cmp dword [eax], 0x1c
jne 0x101706ac
call fcn.10165f60
mov byte [eax + 0x1c], 1
mov dl, byte [edi]
test dl, dl
je 0x1017074e
mov eax, dword [ebp - 0x158]
push eax
jmp 0x10170748
add dword [ebx + 0x84], esi
add dword [ebx + 0x80], esi
cmp byte [ebp + 8], 0
jne 0x101706e1
cmp dword [ebx + 0x80], 0xf4240
jae 0x101706e1
call fcn.10161500
cmp edx, dword [ebx + 0x94]
jl 0x101706e8
jg 0x101706e1
cmp eax, dword [ebx + 0x90]
jb 0x101706e8
mov ecx, ebx
call fcn.1016a090
mov cl, byte [edi]
test cl, cl
je 0x1017074e
mov edx, dword [ebp - 0x158]
push edx
jmp 0x10170748
call fcn.10161500
cmp edx, dword [ebx + 0x94]
jl 0x1017073b
jg 0x1017070e
cmp eax, dword [ebx + 0x90]
jb 0x1017073b
test byte [0x10455d90], 1
jne 0x10170734
or dword [0x10455d90], esi
mov ecx, 0x10455b90
call fcn.101651b0
push 0x101b4ca0
call fcn.1015f6af
add esp, 4
mov byte [0x10455bac], 0
mov al, byte [edi]
test al, al
je 0x1017074e
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret 0x14