Function at 0x1000c690
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
call fcn.1000ade0
cmp dword [0x10034788], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x1000c6e7
call esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000c6df
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x44]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1000c743
push 0xc1
call dword [0x1003478c]
cmp dword [0x10034788], 0
jne 0x1000c739
call esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000c731
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1000c6f5
mov edx, 0x14c
cmp word [ebx + 4], dx
jne 0x1000c79a
test byte [ebx + 0x38], 1
je 0x1000c7af
cmp dword [0x10034788], 0
jne 0x1000c79a
call esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000c792
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xc1
call dword [0x1003478c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
push 4
push 0x3000
push eax
push ecx
call dword [0x10034790]
cmp dword [0x10034788], 0
mov dword [esp + 0x10], eax
jne 0x1000c807
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jbe 0x1000c7f9
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x10], 0
jne 0x1000c873
mov edx, dword [ebx + 0x50]
push 4
push 0x3000
push edx
push 0
call dword [0x10034790]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1000c873
cmp dword [0x10034788], eax
jne 0x1000c861
call esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000c859
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xe
call dword [0x1003478c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
push 0x34
push 0
call dword [0x1003479c]
push eax
call dword [0x10034794]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x1000c8c8
push 0xe
call dword [0x1003478c]
mov eax, dword [esp + 0x10]
push 0x8000
push 0
push eax
call dword [0x100347a0]
cmp dword [0x10034788], 0
jne 0x1000c739
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jmp 0x1000c715
mov ecx, dword [esp + 0x10]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
cmp dword [0x10034788], eax
jne 0x1000c91a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jbe 0x1000c910
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
movzx edx, word [ebx + 0x16]
mov ecx, dword [esp + 0x48]
shr edx, 0xd
and edx, 1
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
cmp dword [0x10034788], eax
jne 0x1000c975
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jbe 0x1000c96d
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
call dword [0x100347a4]
cmp dword [0x10034788], 0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x30], eax
jne 0x1000c9d6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jbe 0x1000c9ce
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebx + 0x54]
mov edx, dword [esp + 0x10]
push 4
push 0x1000
push ecx
push edx
call dword [0x10034790]
cmp dword [0x10034788], 0
mov dword [esp + 0x14], eax
jne 0x1000ca31
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x18], eax
jbe 0x1000ca29
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebx + 0x54]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.10006160
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x3c]
mov edx, dword [esp + 0x20]
add eax, edx
mov edx, dword [esp + 0x1c]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edx
call fcn.1000b100
add esp, 0x18
test eax, eax
je 0x1000cbf4
mov eax, dword [esp + 0x10]
sub eax, dword [ebx + 0x34]
je 0x1000cac3
push eax
mov eax, esi
call fcn.1000bb10
add esp, 4
cmp dword [0x10034788], 0
mov dword [esi + 0x18], eax
jne 0x1000caca
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000cab9
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1000caca
mov dword [esi + 0x18], 1
mov eax, esi
call fcn.1000bcf0
test eax, eax
je 0x1000cbf4
push esi
call fcn.1000b6e0
add esp, 4
test eax, eax
jne 0x1000cb34
cmp dword [0x10034788], eax
jne 0x1000cbf4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000cb1e
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call fcn.1000c570
add esp, 4
jmp 0x1000c8a6
mov eax, esi
call fcn.1000ba30
test eax, eax
je 0x1000cbf4
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000cc26
cmp dword [esi + 0x14], 0
je 0x1000cc13
cmp dword [0x10034788], 0
jne 0x1000cb97
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000cb8f
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x10]
push 0
push 1
add eax, ecx
push ecx
call eax
test eax, eax
jne 0x1000cc02
cmp dword [0x10034788], eax
jne 0x1000cbe9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000cbe1
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x45a
call dword [0x1003478c]
push esi
call fcn.1000c570
add esp, 4
jmp 0x1000c8a6
pop edi
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov edx, dword [esp + 0x10]
add eax, edx
pop edi
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
cmp dword [0x10034788], 0
jne 0x1000cc63
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jbe 0x1000cc5b
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call edi
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret