Function at 0x1000c440
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x10014018]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001675c], eax
je 0x1000c474
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d500
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
cmp dword [0x10016760], edi
je 0x1000c498
call fcn.1000c340
mov eax, dword [0x10016760]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d500
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x1001676c]
cmp esi, edi
je 0x1000c59d
jmp 0x1000c4b0
cmp dword [esi + 4], edi
je 0x1000c559
mov edx, dword [esi + 0x10]
xor ebx, ebx
cmp byte [edx + 0x17], bl
jbe 0x1000c532
mov eax, dword [esi + 0xc]
add eax, ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x330], edi
jne 0x1000c4ee
lea eax, [ebp - 0x44]
cmp edx, edi
jne 0x1000c4fe
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000c519
movzx edi, byte [edx]
push edx
mov edx, dword [edi*8 + 0x1000fcd4]
lea edi, [edi*8 + 0x1000fcd0]
push eax
push edi
lea ecx, [ebp - 0x60]
call edx
xor edi, edi
mov edx, eax
cmp dword [ebp - 0x330], edi
jne 0x1000c532
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov ebx, eax
movzx eax, byte [ecx + 0x17]
cmp ebx, eax
jl 0x1000c4c3
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp ebx, edx
je 0x1000c54f
mov eax, dword [esi + 8]
mov dword [0x10016760], 0xd
mov dword [0x10016764], eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [ecx], edx
jmp 0x1000c593
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x18]
add eax, 5
cmp eax, ecx
jae 0x1000c58b
sub ecx, eax
push ecx
push 0xcc
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov esi, dword [esi]
cmp esi, edi
jne 0x1000c4b0
mov ebx, dword [0x10016768]
cmp ebx, edi
je 0x1000c64b
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x32c]
push ecx
push edx
mov dword [ebp - 0x32c], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000c63f
mov esi, dword [0x1001676c]
test esi, esi
je 0x1000c63f
mov eax, dword [ebp - 0x274]
cmp dword [esi + 4], 0
je 0x1000c601
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x1000c639
lea edx, [ecx + 4]
cmp eax, edx
jae 0x1000c639
sub eax, ecx
mov dword [ebp - 0x274], eax
add eax, dword [esi + 0xc]
jmp 0x1000c620
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1000c639
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x1000c639
sub eax, ecx
mov dword [ebp - 0x274], eax
add eax, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x32c]
push eax
push ecx
call edi
mov eax, dword [ebp - 0x274]
mov esi, dword [esi]
test esi, esi
jne 0x1000c5e0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1000c5b1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x1001676c]
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x330], eax
je 0x1000c6ed
jmp 0x1000c670
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x334]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call edi
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x330]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x1000c6db
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x1000c6db
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov edx, eax
mov dword [eax + 0x1c], ecx
and edx, 0xffff0000
mov ebx, dword [edx + 8]
mov dword [eax + 0x18], ebx
mov dword [edx + 8], eax
mov dword [esi + 0x10], ecx
mov ebx, dword [esi]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x1000c670
mov esi, dword [0x10016750]
xor ebx, ebx
mov dword [0x1001676c], ebx
cmp esi, ebx
je 0x1000c718
nop
lea edx, [ebp - 0x330]
push edx
push 0x20
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x1000c700
mov esi, dword [0x10016768]
cmp esi, ebx
je 0x1000c740
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call edi
mov ebx, dword [esi]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x1000c728
mov ecx, dword [ebp - 4]
mov eax, dword [0x10016760]
pop esi
mov dword [0x10016768], ebx
mov dword [0x1001675c], ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.1000d500
mov esp, ebp
pop ebp
ret