Function at 0x10015380
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037769
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xa08
push esi
push edi
push 0x2cc
lea eax, [ebp - 0x398]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x24], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa10]
push 0x670
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x20], 0
jne 0x100153f5
mov eax, 0xc0000225
jmp 0x10015c52
push dword [ebx + 0xc]
mov ecx, esi
push dword [ebx + 8]
call fcn.10016760
test eax, eax
js 0x10015c52
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10015418
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [ebx + 0x14]
mov ecx, dword [edi]
call fcn.1002d750
test al, al
jne 0x10015437
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
jmp 0x10015c52
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [eax + 8]
mov al, byte [eax + 0xd]
test al, al
sete dl
call fcn.100018c0
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov al, byte [eax + 0xd]
test al, al
jne 0x10015858
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1056c1a0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1056c610]
cmp eax, dword [ecx + 4]
jle 0x10015581
push 0x1056c610
call fcn.1003582c
add esp, 4
cmp dword [0x1056c610], 0xffffffff
jne 0x10015581
movups xmm0, xmmword [0x1003a458]
push 0x1056c610
movups xmmword [0x1056c618], xmm0
movups xmm0, xmmword [0x1003a488]
movups xmmword [0x1056c628], xmm0
movups xmm0, xmmword [0x1003a468]
movups xmmword [0x1056c638], xmm0
movups xmm0, xmmword [0x1003a478]
movups xmmword [0x1056c648], xmm0
movups xmm0, xmmword [0x1003a4b8]
movups xmmword [0x1056c658], xmm0
movups xmm0, xmmword [0x1003a4c8]
movups xmmword [0x1056c668], xmm0
movups xmm0, xmmword [0x1003a4d8]
movups xmmword [0x1056c678], xmm0
movups xmm0, xmmword [0x1003a4e8]
movups xmmword [0x1056c688], xmm0
movups xmm0, xmmword [0x1003a4f8]
movups xmmword [0x1056c698], xmm0
movups xmm0, xmmword [0x1003a508]
movups xmmword [0x1056c6a8], xmm0
movups xmm0, xmmword [0x1003a518]
movups xmmword [0x1056c6b8], xmm0
movups xmm0, xmmword [0x1003a528]
movups xmmword [0x1056c6c8], xmm0
movups xmm0, xmmword [0x1003a538]
movups xmmword [0x1056c6d8], xmm0
movups xmm0, xmmword [0x1003a548]
movups xmmword [0x1056c6e8], xmm0
movups xmm0, xmmword [0x1003a4a8]
movups xmmword [0x1056c6f8], xmm0
call fcn.100357e2
add esp, 4
mov edx, dword [edi]
lea edi, [ebp - 0xa10]
mov dword [ebp - 0x9e0], 0x100001
push edi
mov eax, dword [edx]
push dword [edx + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
js 0x10015897
mov eax, dword [esi + 0x70]
lea ecx, [ebp - 0x38]
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push ecx
lea edi, [esi + 0x70]
mov dword [ebp - 0x38], 4
push 0x1003a498
push 0x261
mov ecx, edi
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0x78
mov dword [ebp - 0x2c], 0
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1f5
call dword [eax + 0x18]
xor eax, eax
mov esi, 0x1056c618
mov dword [ebp - 0x14], eax
nop dword [eax]
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push esi
mov dword [ebp - 0x38], 3
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push ecx
push 0x123
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x14]
add esi, 0x10
add eax, 8
mov dword [ebp - 0x14], eax
cmp esi, 0x1056c708
jl 0x10015620
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x10015683
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10015691
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0xc8]
push eax
call fcn.10007aa0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x80]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.100072c0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x100156cf
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100156dd
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x80]
push eax
call fcn.10007aa0
push 1
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x10015751
mov edx, dword [ebp - 0x40]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10015732
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015732
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x34]
call fcn.10007820
push 0x10001860
push 1
push 0x48
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0
push eax
call fcn.10035902
push 8
push ecx
mov ecx, dword [ebp - 0x24]
push 2
push esi
call fcn.100168b0
xor eax, eax
mov esi, 0x1056c618
mov dword [ebp - 0x14], eax
nop word [eax + eax]
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 3
push ecx
mov dword [ebp - 0x34], 4
mov ecx, edi
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push esi
push 0x123
call dword [eax + 0x18]
mov eax, dword [ebp - 0x14]
add esi, 0x10
add eax, 8
mov dword [ebp - 0x14], eax
cmp esi, 0x1056c708
jl 0x10015790
mov eax, dword [edi]
mov ecx, edi
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1c9
call dword [eax + 0x18]
push 0
push 0x78
push 0x1003a498
push 2
mov ecx, edi
call sym.msvcp160.dll_public:_unsigned_int___thiscall_asmjit::Assembler::emit_unsigned_int__struct_asmjit::Operand_const___unsigned_long_long_unsigned___int64__
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push 2
push ecx
mov ecx, edi
mov dword [ebp - 0x14], 0x25ff
call dword [eax + 0xc]
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push 4
push ecx
mov ecx, edi
mov dword [ebp - 0x14], 0
call dword [eax + 0xc]
mov eax, dword [ebp - 0x918]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x914]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
push 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x28]
jmp 0x10015abf
mov edi, dword [edi]
lea eax, [ebp - 0x394]
push 0x2c8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x398], 0x10001
lea edx, [ebp - 0x398]
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [eax + 8]
push edx
push dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x100158b9
mov edx, dword [ebx + 0x14]
mov edi, dword [edx]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 4], eax
je 0x10015c43
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10015c43
mov eax, dword [esi + 0x70]
lea edi, [esi + 0x70]
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1f4
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1f5
call dword [eax + 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x10015916
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10015924
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0xc8]
push eax
call fcn.10007aa0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
push ecx
lea eax, [ebp - 0x80]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.100072c0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x10015962
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10015970
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x80]
push eax
call fcn.10007aa0
push 1
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [ebp - 0x14]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x100159e4
mov edx, dword [ebp - 0x40]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100159c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100159c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x34]
call fcn.10007820
push 0x10001860
push 1
push 0x48
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0
push eax
call fcn.10035902
push 0
push 4
push 0x1003a398
push 2
mov ecx, edi
call sym.msvcp160.dll_public:_unsigned_int___thiscall_asmjit::Assembler::emit_unsigned_int__struct_asmjit::Operand_const___unsigned_long_long_unsigned___int64__
push 0
push ecx
mov ecx, dword [ebp - 0x24]
push 0
push esi
call fcn.100168b0
mov eax, dword [edi]
mov ecx, edi
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1c9
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1c7
call dword [eax + 0x18]
mov eax, dword [ebp - 0x2e0]
lea ecx, [ebp - 0x38]
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
cdq
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
push ecx
push 0x1f3
mov ecx, edi
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x2c], edx
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push sym.msvcp160.dll_struct_asmjit::Operand_const_asmjit::noOperand
push 0x21c
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x38]
add eax, dword [edi + 0x40]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x10015aed
mov dword [ebp - 0x14], 0xc00000a0
jmp 0x10015bbd
mov edi, dword [ebx + 0xc]
mov edx, 0
add edi, dword [eax]
push 0
adc edx, dword [eax + 4]
mov eax, dword [eax + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
mov eax, dword [eax + 0x4c]
push edx
push edi
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x10015bbd
mov eax, dword [edi]
mov ecx, dword [edi + 0x2c]
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x10015b6b
test ecx, ecx
je 0x10015b3e
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], eax
jmp 0x10015b49
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0xc]
lea esi, [ebp - 0x398]
add eax, edx
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x2e0], eax
mov edx, dword [edx]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
jmp 0x10015bb1
test ecx, ecx
je 0x10015b76
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
jmp 0x10015b84
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebx + 0xc]
lea esi, [ebp - 0xa10]
add edx, eax
mov eax, 0
mov dword [ebp - 0x918], edx
mov edx, dword [ebx + 0x14]
adc eax, ecx
mov dword [ebp - 0x914], eax
mov edx, dword [edx]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
push esi
push dword [edx + 8]
call eax
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], eax
je 0x10015bdc
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp - 0x14], 0
jl 0x10015c43
push 0x4e20
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x10015c00
mov dword [ebp - 0x14], 0xc00000a0
jmp 0x10015c43
mov edx, dword [eax]
xorps xmm0, xmm0
mov edi, dword [eax + 4]
add edx, 8
mov ecx, dword [eax + 0x14]
mov eax, edx
adc edi, 0
movlpd qword [ebp - 0x20], xmm0
or eax, edi
jne 0x10015c25
mov dword [ebp - 0x14], 0xc0000141
jmp 0x10015c43
mov eax, dword [ecx + 0x4c]
lea esi, [ebp - 0x20]
push esi
push 8
push dword [ebx + 0x10]
mov ecx, dword [eax + 8]
push edi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10015c4f
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10