Function at 0x1007a720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1029ad64]
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, 0x102853e0
call fcn.1004fbf0
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 [0x102a004c]
call esi
mov edx, dword [ebp - 8]
mov dword [edi + 0x130], eax
cmp edx, 0x10
jb 0x1007a799
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007a78f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007a78f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x10285400
push eax
call fcn.10050750
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [0x102a004c]
call esi
mov edx, dword [ebp - 8]
mov dword [edi + 0x134], eax
cmp edx, 0x10
jb 0x1007a7f7
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007a7ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007a7ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov esi, dword [0x102a015c]
test esi, esi
je 0x1007a86d
mov ebx, 1
test esi, esi
je 0x1007a86d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007a86d
mov eax, dword [ebp - 0xc]
test al, 1
jne 0x1007a86d
test eax, 0x100
jne 0x1007a86d
mov esi, dword [esi]
sub ebx, 1
jne 0x1007a806
test esi, esi
je 0x1007a86d
mov eax, 1
nop dword [eax]
cmp byte [esi + eax], 0
je 0x1007a84e
inc eax
cmp eax, 0x80
jl 0x1007a840
mov esi, 0x1f
sub esi, eax
cmp esi, 0x20
jle 0x1007a861
mov esi, 0x20
jmp 0x1007a872
mov eax, 3
cmp esi, eax
cmovl esi, eax
jmp 0x1007a872
mov esi, 3
mov eax, dword [edi + 8]
sub eax, dword [edi]
sar eax, 3
cmp esi, eax
jbe 0x1007a892
cmp esi, 0x1fffffff
ja 0x1007a930
push esi
mov ecx, edi
call fcn.10078930
mov dword [ebp - 0x2c], 0
test esi, esi
jle 0x1007a911
nop dword [eax]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 0x1007ae10
cmp ebx, dword [edi + 8]
je 0x1007a8f6
push 8
call fcn.10138eea
mov edx, eax
add esp, 4
test edx, edx
je 0x1007a8cf
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
jmp 0x1007a8d1
xor edx, edx
lea eax, [ebx + 4]
push eax
push 0
push edx
push 0x10074370
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 0x1007a922
add dword [edi + 4], 8
jmp 0x1007a906
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.10074040
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x1007a8a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10139242
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.1001f480
int3