Function at 0x1009b700
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10149f68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x58]
lea edi, [esi + 0xc]
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x48], 0
cmp dword [esi], 0xffffffff
jne 0x1009b74f
push edi
jmp 0x1009b90b
mov eax, dword [0x10179454]
mov edx, dword [eax + 0xc]
mov ecx, 0x10179454
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x60]
mov byte [esp + 0x48], 1
mov ebx, dword [esp + 0x5c]
push eax
lea edi, [esp + 0x20]
call fcn.1009d760
mov edx, dword [0x10179454]
mov eax, dword [edx + 0xc]
mov ecx, 0x10179454
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x4c], 2
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x3c]
movzx eax, word [esp + 0x3a]
movzx ecx, word [esp + 0x38]
push edx
movzx edx, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3a]
push ecx
movzx ecx, word [esp + 0x3c]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push eax
push str.___s___d___d__02d__02d__02d:_02d:_02d__r_n
lea edi, [esp + 0x44]
call fcn.1009eb30
mov ecx, dword [esi + ebp*4 + 0x24]
add esp, 0x24
lea edx, [esp + 0x14]
push edx
call fcn.1009d6b0
mov byte [esp + 0x48], 3
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.1009da30
mov edi, dword [esp + 0x20]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.1009da30
mov edx, dword [0x10179454]
mov eax, dword [edx + 0xc]
mov ecx, 0x10179454
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 4
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
call fcn.1009b440
add esp, 4
test al, al
je 0x1009b87a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi + 8], 0
je 0x1009b87a
push edi
push ebx
push ebp
mov eax, esi
call fcn.1009bc50
mov byte [esp + 0x48], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009b89f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009b8c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x48], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009b8e5
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0xfffffff0
mov byte [esp + 0x48], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1009b906
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x3c
ret