Function at 0x10078120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1025ab04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
mov edi, ecx
push eax
mov ecx, 0x10245550
call fcn.1004f680
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [0x1025dfcc]
call esi
mov edx, dword [ebp - 8]
mov dword [edi + 0x130], eax
cmp edx, 0x10
jb 0x10078199
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007818f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007818f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101041fa
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x10245570
push eax
call fcn.100501e0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [0x1025dfcc]
call esi
mov edx, dword [ebp - 8]
mov dword [edi + 0x134], eax
cmp edx, 0x10
jb 0x100781f7
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100781ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100781ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101041fa
add esp, 8
mov esi, dword [0x1025e0dc]
test esi, esi
je 0x1007826d
mov ebx, 1
test esi, esi
je 0x1007826d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007826d
mov eax, dword [ebp - 0xc]
test al, 1
jne 0x1007826d
test eax, 0x100
jne 0x1007826d
mov esi, dword [esi]
sub ebx, 1
jne 0x10078206
test esi, esi
je 0x1007826d
mov eax, 1
nop dword [eax]
cmp byte [esi + eax], 0
je 0x1007824e
inc eax
cmp eax, 0x80
jl 0x10078240
mov esi, 0x1f
sub esi, eax
cmp esi, 0x20
jle 0x10078261
mov esi, 0x20
jmp 0x10078272
mov eax, 3
cmp esi, eax
cmovl esi, eax
jmp 0x10078272
mov esi, 3
mov eax, dword [edi + 8]
sub eax, dword [edi]
sar eax, 3
cmp esi, eax
jbe 0x10078292
cmp esi, 0x1fffffff
ja 0x10078330
push esi
mov ecx, edi
call fcn.10076580
mov dword [ebp - 0x2c], 0
test esi, esi
jle 0x10078311
nop dword [eax]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 0x100786f0
cmp ebx, dword [edi + 8]
je 0x100782f6
push 8
call fcn.101041ca
mov edx, eax
add esp, 4
test edx, edx
je 0x100782cf
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
jmp 0x100782d1
xor edx, edx
lea eax, [ebx + 4]
push eax
push 0
push edx
push 0x10072290
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x10078322
add dword [edi + 4], 8
jmp 0x10078306
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.10071fb0
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x100782a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10104522
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebx + 4], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
call fcn.1001eeb0
int3