Function at 0x40f100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cbb6
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x48d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x118]
call fcn.0041b5c0
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x100]
mov ecx, esi
push eax
call fcn.0040ede0
add esi, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x118]
cmp esi, eax
je 0x40f189
cmp dword [ebp - 0x104], 8
mov ecx, esi
push dword [ebp - 0x108]
cmovae eax, dword [ebp - 0x118]
push eax
call fcn.00407590
mov eax, dword [esi + 0x10]
cmp eax, 1
jb 0x40f1c1
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40f19b
mov ecx, dword [esi]
movzx ecx, word [ecx + eax*2 - 2]
xor eax, eax
cmp cx, word [eax + 0x482750]
je 0x40f1c1
add eax, 2
cmp eax, 4
jb 0x40f1a2
push 1
push 0x486c90
mov ecx, esi
call fcn.00407dd0
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40f1d8
mov ecx, dword [esi]
movzx eax, word [ebp - 0xdc]
push eax
movzx eax, word [ebp - 0xde]
push eax
movzx eax, word [ebp - 0xe0]
push eax
movzx eax, word [ebp - 0xe2]
push eax
movzx eax, word [ebp - 0xe6]
push eax
movzx eax, word [ebp - 0xe8]
push eax
push 0x473d00
push ecx
push str._s_s_04d_02d_02d_02d_02d_02d.Log
push esi
call fcn.00418c90
add esp, 0x28
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40f226
mov eax, dword [esi]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40f260
push eax
call edi
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40f257
mov ecx, dword [esi]
xor edx, edx
call fcn.0041a310
jmp 0x40f273
push 0x473d00
push str.C:_s.Log
push esi
call fcn.00418c90
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40f27b
mov esi, dword [esi]
cmp dword [0x48daf4], 0
jne 0x40f3ee
call fcn.00418380
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f292
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x48dad0
call fcn.00407590
push 0xc8
xorps xmm0, xmm0
mov dword [0x48daf4], 1
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x130], 0
push 0
push eax
movups xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x124], 0
movq qword [ebp - 0x12c], xmm0
call fcn.00424870
add esp, 0xc
lea eax, [ebp - 0x140]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x140]
mov dword [ebp - 0x12c], 0xc
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
lea eax, [ebp - 0xd8]
push 0x63
push eax
call fcn.00416b90
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xd8]
add esp, 0x10
push eax
push 1
push 1
lea eax, [ebp - 0x12c]
push eax
call esi
mov ecx, dword [0x48dac4]
mov dword [ebp - 0x120], eax
test ecx, ecx
je 0x40f37b
push ecx
call edi
mov eax, dword [ebp - 0x120]
push 0
push 0
push 0
push 0
mov dword [0x48dac4], eax
call esi
mov esi, eax
mov eax, dword [0x48dac8]
test eax, eax
je 0x40f398
push eax
call edi
cmp dword [0x48dac4], 0
mov dword [0x48dac8], esi
je 0x40f3dd
test esi, esi
je 0x40f3dd
push 0
push 0
push 0x48dac0
push 0x418040
push 0
push 0
call fcn.00438cd8
mov esi, eax
add esp, 0x18
mov eax, dword [0x48dacc]
test eax, eax
je 0x40f3d3
push eax
call edi
mov dword [0x48dacc], esi
test esi, esi
jne 0x40f3ee
mov esi, dword [ebp - 0x11c]
mov dword [esi + 4], 0
xor esi, esi
jmp 0x40f42c
cmp dword [ebp - 0xf0], 0
je 0x40f412
cmp dword [ebp - 0xec], 8
lea ecx, [ebp - 0x100]
cmovae ecx, dword [ebp - 0x100]
xor edx, edx
call fcn.0041a310
mov esi, dword [ebp - 0x11c]
lea ecx, [esi + 0x38]
call fcn.0041bb20
mov dword [esi + 4], 1
mov esi, 1
mov edx, dword [ebp - 0xec]
cmp edx, 8
jb 0x40f46c
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f462
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f4e2
push edx
push ecx
call fcn.0042297a
add esp, 8
mov edx, dword [ebp - 0x104]
xor eax, eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 7
mov word [ebp - 0x100], ax
cmp edx, 8
jb 0x40f4c5
mov ecx, dword [ebp - 0x118]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f4bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f4e7
push edx
push ecx
call fcn.0042297a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422308
mov esp, ebp
pop ebp
ret
call fcn.004309e5
call fcn.004309e5
int3