Function at 0x4000c0f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x210
mov eax, dword [0x4006f01c]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [edi + 0x5c]
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0x10], ebx
cmp dword [eax], ebx
je 0x4000c147
mov eax, dword [eax]
push eax
push str.SafeMachineAnalyzerPort_s
push 0xff
lea ecx, [esp + 0x24]
call fcn.40007560
lea ecx, [esp + 0x24]
push ecx
call fcn.40003030
mov ebp, eax
add esp, 0x10
cmp ebp, 0x7d00
jne 0x4000c2cd
jmp 0x4000c16c
cmp dword [eax + 0x10], ebx
je 0x4000c16c
cmp dword [eax + 0xc], ebx
je 0x4000c16c
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push edx
push eax
call fcn.400030d0
add esp, 8
cmp eax, 0x7d00
jne 0x4000c2cb
mov ecx, dword [0x40477438]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x2c
push ebx
push ecx
call esi
cmp eax, ebx
je 0x4000c190
mov dword [eax + 4], 0xffffffff
mov dword [0x40477440], eax
jmp 0x4000c196
mov dword [0x40477440], ebx
call fcn.40008650
mov edx, dword [edi + 0x5c]
mov eax, dword [edx + 0x18]
cmp eax, ebx
je 0x4000c1b5
push ebx
push ebx
push eax
push 0x4000b8d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x10]
push eax
mov eax, edi
call fcn.4000ab30
mov dword [esp + 0xc], eax
call fcn.40011aa0
mov eax, dword [0x40477424]
mov ecx, dword [edi + 8]
mov ebp, dword [edi + 0x64]
mov dword [esp + 0x14], ecx
cmp eax, ebx
je 0x4000c2a5
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
cmp eax, ebx
je 0x4000c2a5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4000c2a5
mov edx, dword [0x40477438]
push 0x2c
push ebx
push edx
call esi
mov esi, eax
cmp esi, ebx
je 0x4000c2a5
mov dword [esi + 4], 0x3e8
mov dword [esi], 0x2c
mov dword [esi + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
cmp eax, ebx
je 0x4000c280
mov ecx, dword [esp + 0xc]
mov dword [eax + 2], ecx
lea ecx, [eax + 6]
mov byte [eax + 1], bl
mov byte [eax], 6
cmp ecx, ebx
je 0x4000c258
mov byte [ecx + 1], bl
mov byte [ecx], 6
mov dword [ecx + 2], ebp
lea ecx, [eax + 0xc]
cmp ecx, ebx
je 0x4000c26c
mov edx, dword [esp + 0x14]
mov byte [ecx + 1], bl
mov byte [ecx], 6
mov dword [ecx + 2], edx
add eax, 0x12
cmp eax, ebx
je 0x4000c280
mov ecx, dword [esp + 0x10]
mov byte [eax + 1], bl
mov byte [eax], 6
mov dword [eax + 2], ecx
mov eax, dword [0x40477424]
mov edx, dword [eax + 0xc]
test dword [esi + 0xc], edx
je 0x4000c297
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [0x40477438]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [edi + 0x5c]
mov eax, dword [ecx + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4000c2b8
push eax
call esi
mov edx, dword [edi + 0x5c]
mov eax, dword [edx + 0xc]
cmp eax, ebx
je 0x4000c2c5
push eax
call esi
mov ebp, dword [esp + 0xc]
jmp 0x4000c2cd
mov ebp, eax
mov eax, dword [0x40477440]
cmp eax, ebx
je 0x4000c310
mov esi, eax
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esi, dword [esi + 0x28]
cmp esi, ebx
je 0x4000c2fd
push esi
call fcn.400037d0
mov eax, dword [0x40477438]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x4047743c]
push 0x8000
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [0x40477424]
cmp esi, ebx
je 0x4000c337
mov ecx, dword [esi]
cmp ecx, ebx
je 0x4000c328
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [0x40477438]
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x218]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.4001a06e
add esp, 0x210
ret