Function at 0x1011beb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016275f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x101c3db4]
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 edi, ecx
mov dword [ebp - 0xfc], edi
cmp byte [edi + 0x1c], 0
lea ebx, [edi + 4]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], ebx
je 0x1011bf0a
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0x20], 0
mov dword [ebp - 4], 0
je 0x1011bf21
cmp dword [edi + 0x34], 0
je 0x1011c97a
mov ecx, dword [0x101dcc38]
mov edx, 1
lea eax, [ecx - 1]
cmp eax, 0xffe
mov eax, dword [edi + 0x7c]
cmovbe edx, ecx
shr eax, 0x14
cmp eax, edx
jae 0x1011bf4a
call fcn.1011e480
test al, al
je 0x1011bf80
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x1011bf5a
push eax
call fcn.10139ee7
add esp, 4
mov dword [edi + 0x6c], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0x1f
cmp dword [edi + 0x6c], 0
jne 0x1011c8b9
inc dword [edi + 0x80]
cmp dword [edi + 0x80], 0x20
jne 0x1011c97a
lea eax, [ebp - 0xf4]
mov dword [edi + 0x80], 0
cmp byte [0x101dcbe8], 0
push eax
lea eax, [ebp + 0xc]
push eax
je 0x1011bfc2
call fcn.1011e5a0
jmp 0x1011bfc7
call fcn.1011e5c0
add esp, 8
lea ecx, [ebp - 0x1ac]
push 1
push 2
call fcn.10117910
mov eax, dword [ebp - 0x1ac]
push 0
push 2
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x16c], 0x30
lea eax, [ebp - 0x10c]
push eax
call fcn.1015c756
mov ecx, dword [ebp - 0xe0]
add esp, 0xc
add ecx, 0x76c
mov dword [ebp - 0xf8], eax
push ecx
lea ecx, [ebp - 0x1ac]
call fcn.10118580
mov esi, eax
test esi, esi
jne 0x1011c029
xor ecx, ecx
jmp 0x1011c030
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0xf8]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x254]
push 2
push eax
call fcn.1015c756
mov ecx, dword [ebp - 0xe4]
add esp, 0x18
inc ecx
mov dword [ebp - 0xf8], eax
push ecx
mov ecx, esi
call fcn.10118580
mov esi, eax
test esi, esi
jne 0x1011c073
xor ecx, ecx
jmp 0x1011c07a
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0xf8]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x264]
push 2
push eax
call fcn.1015c756
add esp, 0x18
mov dword [ebp - 0xf8], eax
mov ecx, esi
push 0x2d
push dword [ebp - 0xe8]
call fcn.10118580
push eax
call fcn.10117100
mov esi, eax
add esp, 8
test esi, esi
jne 0x1011c0c6
xor ecx, ecx
jmp 0x1011c0cd
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0xf8]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x274]
push 2
push eax
call fcn.1015c756
add esp, 0x18
mov dword [ebp - 0xf8], eax
mov ecx, esi
push dword [ebp - 0xec]
call fcn.10118580
mov esi, eax
test esi, esi
jne 0x1011c10e
xor ecx, ecx
jmp 0x1011c115
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0xf8]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x284]
push 2
push eax
call fcn.1015c756
add esp, 0x18
mov dword [ebp - 0xf8], eax
mov ecx, esi
push dword [ebp - 0xf0]
call fcn.10118580
mov esi, eax
test esi, esi
jne 0x1011c156
xor ecx, ecx
jmp 0x1011c15d
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0xf8]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
add esp, 0xc
call fcn.1011e2c0
push eax
push 0x2e
push dword [ebp - 0xf4]
mov ecx, esi
call fcn.10118580
push eax
call fcn.10117100
add esp, 8
mov ecx, eax
call fcn.10118580
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.1011d7f0
cmp byte [edi + 0x20], 0
mov byte [ebp - 4], 2
je 0x1011c1f8
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10119190
test al, al
jne 0x1011c4df
push str.Could_not_create_log_file
call fcn.1014dcc3
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
push str.COULD_NOT_CREATE_LOGFILE__s__n
push 2
call fcn.101397bb
add esp, 4
push eax
call fcn.10028210
add esp, 0xc
jmp 0x1011c42b
call fcn.1011e4a0
push eax
lea ecx, [ebp - 0x70]
call fcn.100290a0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.10119630
add esp, 4
call fcn.1011e400
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10028c10
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 5
jne 0x1011c263
push str.invalid_user
lea ecx, [ebp - 0x40]
call fcn.10030eb0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.10028c10
call fcn.101196d0
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x1011c385
mov eax, dword [ebp - 0xfc]
add eax, 0x24
mov dword [ebp - 0xf8], eax
push 0x10167ee0
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.10025fb0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.100260b0
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x100], edx
mov ecx, dword [ebp - 0xf8]
cmp ecx, edx
je 0x1011c311
cmp dword [ecx + 0x14], 0x10
jb 0x1011c2ee
mov eax, dword [ecx + 0x14]
inc eax
push eax
push dword [ecx]
call fcn.100291f0
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ebp - 0x100]
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1011c306
mov eax, dword [ecx]
jmp 0x1011c308
mov eax, ecx
push edx
mov byte [eax], 0
call fcn.100289f0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x1011c32c
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.100291f0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x1011c363
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.100291f0
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x28]
push eax
call fcn.10119190
test al, al
jne 0x1011c47f
add esi, 0x18
cmp esi, edi
jne 0x1011c294
push str.Could_not_create_logging_file
call fcn.1014dcc3
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
push str.COULD_NOT_CREATE_A_LOGGINGFILE__s_
push 2
call fcn.101397bb
add esp, 4
push eax
call fcn.10028210
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0x10
jb 0x1011c3cb
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.100291f0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x1011c3f2
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.100291f0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x1011c419
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.100291f0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1011c440
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100291f0
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10117fb0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10033996
add esp, 4
jmp 0x1011c97a
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1011c494
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.100291f0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x1011c4bb
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.100291f0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 2
call fcn.100291b0
mov edi, dword [ebp - 0xfc]
cmp byte [0x101dcbe7], 0
je 0x1011c866
push 1
push 2
lea ecx, [ebp - 0x244]
call fcn.10117910
mov eax, dword [ebp - 0x244]
push 0
push 2
mov byte [ebp - 4], 9
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x204], 0x30
lea eax, [ebp - 0x294]
push eax
call fcn.1015c756
mov ecx, dword [ebp - 0xe0]
add esp, 0xc
add ecx, 0x76c
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x244]
push 0x2f
push ecx
push str.Log_file_created_at:
push eax
call fcn.1002eed0
add esp, 8
mov ecx, eax
call fcn.10118580
push eax
call fcn.10117100
mov esi, eax
add esp, 8
test esi, esi
jne 0x1011c566
xor ecx, ecx
jmp 0x1011c56d
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x100]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x2a4]
push 2
push eax
call fcn.1015c756
mov ecx, dword [ebp - 0xe4]
add esp, 0x18
inc ecx
mov dword [ebp - 0x100], eax
push 0x2f
push ecx
mov ecx, esi
call fcn.10118580
push eax
call fcn.10117100
mov esi, eax
add esp, 8
test esi, esi
jne 0x1011c5bb
xor ecx, ecx
jmp 0x1011c5c2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x100]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x2b4]
push 2
push eax
call fcn.1015c756
add esp, 0x18
mov dword [ebp - 0x100], eax
mov ecx, esi
push 0x20
push dword [ebp - 0xe8]
call fcn.10118580
push eax
call fcn.10117100
mov esi, eax
add esp, 8
test esi, esi
jne 0x1011c60e
xor ecx, ecx
jmp 0x1011c615
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x100]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x2c4]
push 2
push eax
call fcn.1015c756
add esp, 0x18
mov dword [ebp - 0x100], eax
mov ecx, esi
push 0x3a
push dword [ebp - 0xec]
call fcn.10118580
push eax
call fcn.10117100
mov esi, eax
add esp, 8
test esi, esi
jne 0x1011c661
xor ecx, ecx
jmp 0x1011c668
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x100]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
add esp, 0xc
push 0xa
call fcn.1011cd10
cmp byte [0x101dcbe8], 0
mov ecx, 0x1016a108
push eax
push str.Running_on_machine:
mov eax, str._UTC_n
cmove eax, ecx
push eax
push dword [ebp - 0xf4]
lea eax, [ebp - 0x2d4]
push 0
push 2
push eax
call fcn.1015c756
add esp, 0xc
mov ecx, esi
push eax
push 0x3a
push dword [ebp - 0xf0]
call fcn.10118580
push eax
call fcn.10117100
add esp, 8
push eax
call fcn.101170d0
add esp, 8
mov ecx, eax
call fcn.10118580
push eax
call fcn.1002eed0
add esp, 8
push eax
call fcn.1002eed0
add esp, 8
push eax
call fcn.10030c40
add esp, 8
push eax
call fcn.10117100
add esp, 8
cmp dword [0x101d550c], 0
je 0x1011c73a
push 0xa
push 0x101d54fc
lea eax, [ebp - 0x244]
push str.Application_fingerprint:
push eax
call fcn.1002eed0
add esp, 8
push eax
call fcn.10030c40
add esp, 8
push eax
call fcn.10117100
add esp, 8
cmp byte [0x101dcbe9], 0
mov eax, str.mmdd_hh:mm:ss.uuuuuu
mov esi, str.yyyymmdd_hh:mm:ss.uuuuuu
cmove esi, eax
call fcn.1011e4f0
fsub qword [edi + 0x90]
fstp qword [ebp - 0x104]
cvttsd2si eax, qword [ebp - 0x104]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.1011ac40
add esp, 8
push 0xa
push str.threadid_file:line__msg
push 0x10165650
push esi
push str.Log_line_format:__IWEF_
push 0xa
push eax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0xa
push str.Running_duration__h:mm:ss_:
push eax
call fcn.1002eed0
add esp, 8
push eax
call fcn.10030c40
add esp, 8
push eax
call fcn.10117100
add esp, 8
push eax
call fcn.1002eed0
add esp, 8
push eax
call fcn.1002eed0
add esp, 8
push eax
call fcn.1002eed0
add esp, 8
push eax
call fcn.1002eed0
add esp, 8
push eax
call fcn.10117100
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd0]
call fcn.100291b0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x244]
call fcn.1011d7f0
push dword [edi + 0x6c]
mov esi, dword [ebp - 0x90]
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
push esi
cmovae eax, dword [ebp - 0xa0]
push 1
push eax
call fcn.10139e19
add dword [edi + 0x7c], esi
lea ecx, [ebp - 0xa0]
add dword [edi + 0x74], esi
add esp, 0x10
call fcn.100291b0
lea ecx, [ebp - 0x1f4]
call fcn.10117fb0
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10033996
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1011c87b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100291f0
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10117fb0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10033996
add esp, 4
mov byte [ebp - 4], 0
cmp byte [0x101dcbeb], 0
jne 0x1011c95c
call fcn.1013963b
mov esi, dword [ebp + 0x18]
mov dword [eax], 0
push dword [edi + 0x6c]
push esi
push 1
push dword [ebp - 0x114]
call fcn.10139e19
add esp, 0x10
cmp byte [0x101dcbe5], 0
je 0x1011c904
call fcn.1013963b
cmp dword [eax], 0x1c
jne 0x1011c904
mov byte [0x101dcbeb], 1
jmp 0x1011c97a
mov eax, dword [edi + 0x74]
add dword [edi + 0x7c], esi
add eax, esi
cmp byte [ebp + 8], 0
mov dword [edi + 0x74], eax
jne 0x1011c933
cmp eax, 0xf4240
jae 0x1011c933
call fcn.1011e0a0
cmp edx, dword [edi + 0x8c]
jl 0x1011c97a
jg 0x1011c933
cmp eax, dword [edi + 0x88]
jb 0x1011c97a
mov ecx, edi
call fcn.101195e0
cmp byte [0x101c3df8], 0
je 0x1011c97a
lea eax, [edi + 0x54]
mov ecx, 0x101c3df8
push eax
lea eax, [edi + 0x24]
push eax
movzx eax, byte [edi + 0x20]
push eax
call fcn.1011aef0
jmp 0x1011c97a
call fcn.1011e0a0
cmp edx, dword [edi + 0x8c]
jl 0x1011c97a
jg 0x1011c973
cmp eax, dword [edi + 0x88]
jb 0x1011c97a
mov byte [0x101dcbeb], 0
cmp byte [ebx + 0x18], 0
je 0x1011c98c
push dword [ebp - 0x110]
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.101156cc
mov esp, ebp
pop ebp
ret 0x14