Function at 0x4c02a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d87e
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 1
call fcn.004c1ec0
add esp, 4
cmp dword [ebx + 0x10], 0
jne 0x4c0514
cmp byte [0x56d220], 0
je 0x4c035e
push 0x56d220
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
call fcn.004c1870
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x44], eax
jmp 0x4c047c
push 0
push 0
push 0x56d220
push 0x4c0c10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4c03b3
push 0x56d220
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xf
call fcn.004c1870
lea eax, [ebp - 0x28]
lea ecx, [esi + 5]
jmp 0x4c03d0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov ecx, 9
mov dword [ebp - 0x2c], 0xf
mov edx, dword [eax + 4]
or ecx, 2
mov esi, dword [eax]
mov edi, dword [eax + 0x14]
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x50], edx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
test cl, 8
je 0x4c0443
mov edx, dword [ebp - 0x2c]
and ecx, 0xfffffff7
mov dword [ebp - 0x54], ecx
cmp edx, 0x10
jb 0x4c0443
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c0436
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c0504
push edx
push ecx
call fcn.004c6f6f
mov ecx, dword [ebp - 0x54]
add esp, 8
test cl, 4
je 0x4c047c
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4c047c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c0472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c0504
push edx
push ecx
call fcn.004c6f6f
add esp, 8
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x4c04e2
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x4c04b2
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x4c04a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c0504
mov eax, edx
push ecx
push eax
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edi
jmp 0x4c0514
cmp edi, 0x10
jb 0x4c0514
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4c050a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c050a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004c6f6f
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret