Function at 0x10160020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021ade0
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x10282800]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], eax
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
mov dword [eax], 0
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x2c], 0xffffffff
mov dword [eax + 4], 2
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
add eax, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 0xb8], eax
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0xbc], eax
mov dword [eax], 0
push 0xc
mov byte [ebp - 4], 1
call fcn.101e3738
mov edi, eax
add esp, 4
mov dword [ebp - 0xb0], edi
test edi, edi
je 0x10160119
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10107960
jmp 0x1016011b
xor edi, edi
mov esi, dword [edi]
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x44], 0x7665642d
mov byte [ebp - 0x40], 0
cmp esi, dword [edi + 4]
je 0x101601a7
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x1016014c
mov eax, dword [esi]
push 4
lea ecx, [ebp - 0x44]
push ecx
push dword [esi + 0x10]
push eax
call fcn.100ed0f0
add esp, 0x10
test al, al
jne 0x1016016c
add esi, 0x18
cmp esi, dword [edi + 4]
jne 0x10160142
jmp 0x101601a7
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x101601a7
push 1
call fcn.101e9555
push eax
push 0x1025fcb0
push 0x10229540
call fcn.101f43a5
push 2
call fcn.101e9555
push eax
push 0x1025fcb0
push 0x10229540
call fcn.101f43a5
add esp, 0x20
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0xac]
mov byte [ebp - 4], 1
mov dword [ecx], eax
mov ecx, edi
call fcn.1010b810
push 0xc
push edi
call fcn.101e3768
mov byte [ebp - 0xa8], 0
lea eax, [ebp - 0x44]
push dword [ebp - 0xa8]
push 9
push str.debug.log
push eax
call fcn.100ce1a0
mov byte [ebp - 0xa8], 0
lea eax, [ebp - 0x8c]
push dword [ebp - 0xa8]
mov byte [ebp - 4], 5
push 0xb
push str..millennium
push eax
call fcn.100ce1a0
mov dword [ebp - 0xa8], 0xe
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 6
push eax
call fcn.10162bc0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.100dab10
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.100dab10
add esp, 0x44
mov ecx, dword [ebp - 0x90]
mov byte [ebp - 4], 0xa
cmp ecx, 7
jbe 0x1016029e
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10160294
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101607f4
push ecx
push edx
call fcn.101e3768
add esp, 8
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 0xb
cmp ecx, 7
jbe 0x101602f9
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x101602ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101607f4
push ecx
push edx
call fcn.101e3768
add esp, 8
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 4], 0xc
cmp ecx, 7
jbe 0x1016034e
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10160344
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101607f4
push ecx
push edx
call fcn.101e3768
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0xd
cmp ecx, 7
jbe 0x101603a3
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10160399
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101607f4
push ecx
push edx
call fcn.101e3768
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x48], 7
lea edi, [ebp - 0x5c]
mov word [ebp - 0x44], ax
cmova edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], 7
mov byte [ebp - 4], 0xe
lea esi, [edi + eax*2]
push esi
push edi
call fcn.100dd710
add esp, 8
cmp eax, esi
je 0x10160435
nop word [eax + eax]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x101603ed
cmp ecx, 0x2f
jne 0x101603f4
add eax, 2
cmp eax, esi
jne 0x101603e0
cmp eax, esi
je 0x10160435
nop dword [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x10160417
cmp edx, 0x2f
je 0x10160417
add esi, 0xfffffffe
cmp eax, esi
jne 0x10160400
jmp 0x10160435
cmp eax, esi
je 0x10160435
nop dword [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x1016042e
cmp edx, 0x2f
jne 0x10160435
add esi, 0xfffffffe
cmp eax, esi
jne 0x10160420
sub esi, edi
mov dword [ebp - 0x1c], 0
sar esi, 1
lea ecx, [ebp - 0x2c]
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push edi
movups xmmword [ebp - 0x2c], xmm0
call fcn.100e72b0
mov edi, 0x7e
mov dword [ebp - 0xa8], edi
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xb4], 0
push eax
mov dword [ebp - 0xb0], 0x10282038
call fcn.10161530
add esp, 8
cmp dword [ebp - 0xb4], 0
jne 0x101607f9
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0xe
cmp ecx, 7
jbe 0x10160576
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x101604d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1016080e
push ecx
push edx
call fcn.101e3768
add esp, 8
jmp 0x10160576
push 0xc0
mov dword [ebp - 4], 0xd
call fcn.101e3738
add esp, 4
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x101605f6
xorps xmm0, xmm0
lea esi, [eax + 0x10]
movq qword [eax], xmm0
mov ecx, esi
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_std::basic_ofstream_char__struct_std::char_traits_char___.0
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 7
push 1
cmova eax, dword [ebp - 0x5c]
push 0x40
push 2
push eax
call fcn.100d8970
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esi + ecx - 4], eax
mov ecx, dword [ebp - 0xb0]
jmp 0x101605f8
xor ecx, ecx
mov edx, dword [ebp - 0xb8]
lea eax, [ecx + 0x10]
or edi, 0x80
mov byte [ebp - 4], 0xd
mov dword [edx], eax
mov eax, dword [ebp - 0xbc]
mov esi, dword [eax]
mov dword [eax], ecx
test esi, esi
je 0x1016063c
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1016063c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1016063c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax]
cmp dword [eax + 0x50], 0
jne 0x101607ca
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0x2f
lea ecx, [ebp - 0x2c]
xorps xmm0, xmm0
push eax
push ecx
movups xmmword [ebp - 0x2c], xmm0
call fcn.100ce050
movups xmm0, xmmword [str.Couldnt_open_output_log_stream.]
mov ecx, eax
mov dword [ebp - 0x1c], 0x20
mov eax, dword [ebp - 0xb8]
add esp, 8
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], eax
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x1022959c]
movups xmmword [ecx + 0x10], xmm0
mov byte [ecx + 0x20], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 4
push dword [0x1028e1b8]
mov byte [ebp - 4], 0x12
call esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x74]
call fcn.100d8c80
push eax
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
xorps xmm0, xmm0
or edi, 0x100
mov dword [ebp - 0xa8], edi
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 9
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.__error_]
movq qword [ecx], xmm0
mov al, byte [0x10220f5c]
mov byte [ecx + 8], al
mov byte [ecx + 9], 0
mov ecx, 0x1028e1b8
call fcn.10161300
test edi, 0x200
je 0x10160754
mov ecx, dword [ebp - 0xbc]
and edi, 0xfffffdff
cmp ecx, 0xf
jbe 0x10160754
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1016074a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10160813
push ecx
push edx
call fcn.101e3768
add esp, 8
test edi, 0x100
je 0x10160790
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x10160790
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10160786
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10160813
push ecx
push edx
call fcn.101e3768
add esp, 8
push 7
push dword [0x1028e1b8]
call esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x101607ca
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101607c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10160818
push ecx
push edx
call fcn.101e3768
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.100da250
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101e3b75
mov esp, ebp
pop ebp
ret
call fcn.101e90af
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xb4]
push eax
push str.create_directories
call fcn.100de2a0
call fcn.101e90af
call fcn.101e90af
call fcn.101e90af
int3