Function at 0x418550
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 0x4fc639
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 fcn.004cebf0
add esp, 0xc
lea eax, [ebp - 0xa10]
push 0x670
push 0
push eax
call fcn.004cebf0
add esp, 0xc
cmp dword [esi + 0x20], 0
jne 0x4185c5
mov eax, 0xc0000225
jmp 0x418e10
push dword [ebx + 0xc]
mov ecx, esi
push dword [ebx + 8]
call fcn.00419930
test eax, eax
js 0x418e10
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4185e8
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [ebx + 0x14]
mov ecx, dword [edi]
call fcn.0042e9c0
test al, al
jne 0x418607
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
jmp 0x418e10
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.00403a20
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 0x418a18
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6d0c10]
cmp eax, dword [ecx + 0x139c]
jle 0x41874a
push 0x6d0c10
call fcn.004b5632
add esp, 4
cmp dword [0x6d0c10], 0xffffffff
jne 0x41874a
movups xmm0, xmmword [0x52e380]
push 0x6d0c10
movups xmmword [0x6d0c18], xmm0
movups xmm0, xmmword [0x52e3b0]
movups xmmword [0x6d0c28], xmm0
movups xmm0, xmmword [0x52e390]
movups xmmword [0x6d0c38], xmm0
movups xmm0, xmmword [0x52e3a0]
movups xmmword [0x6d0c48], xmm0
movups xmm0, xmmword [0x52e3e0]
movups xmmword [0x6d0c58], xmm0
movups xmm0, xmmword [0x52e3f0]
movups xmmword [0x6d0c68], xmm0
movups xmm0, xmmword [0x52e400]
movups xmmword [0x6d0c78], xmm0
movups xmm0, xmmword [0x52e410]
movups xmmword [0x6d0c88], xmm0
movups xmm0, xmmword [0x52e420]
movups xmmword [0x6d0c98], xmm0
movups xmm0, xmmword [0x52e430]
movups xmmword [0x6d0ca8], xmm0
movups xmm0, xmmword [0x52e440]
movups xmmword [0x6d0cb8], xmm0
movups xmm0, xmmword [0x52e450]
movups xmmword [0x6d0cc8], xmm0
movups xmm0, xmmword [0x52e460]
movups xmmword [0x6d0cd8], xmm0
movups xmm0, xmmword [0x52e470]
movups xmmword [0x6d0ce8], xmm0
movups xmm0, xmmword [0x52e3d0]
movups xmmword [0x6d0cf8], xmm0
call fcn.004b55e8
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 0x418a57
mov eax, dword [esi + 0x70]
lea ecx, [ebp - 0x38]
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push ecx
lea edi, [esi + 0x70]
mov dword [ebp - 0x38], 4
push 0x52e3c0
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.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1f5
call dword [eax + 0x18]
xor eax, eax
mov esi, 0x6d0c18
mov dword [ebp - 0x14], eax
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_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, 0x6d0d08
jl 0x4187e2
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 0x418845
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x418853
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.00409a40
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.004091b0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x418891
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x41889f
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.00409a40
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 0x418911
mov edx, dword [ebp - 0x40]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4188f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e25
push edx
push ecx
call fcn.004b4fdc
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x34]
call fcn.004097b0
push 0x4039d0
push 1
push 0x48
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0
push eax
call fcn.004b4ec7
push 8
push ecx
mov ecx, dword [ebp - 0x24]
push 2
push esi
call fcn.00419a80
xor eax, eax
mov esi, 0x6d0c18
mov dword [ebp - 0x14], eax
nop word [eax + eax]
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_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, 0x6d0d08
jl 0x418950
mov eax, dword [edi]
mov ecx, edi
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1c9
call dword [eax + 0x18]
push 0
push 0x78
push 0x52e3c0
push 2
mov ecx, edi
call sym.project_sun.exe_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]
mov ecx, dword [ebp - 0x914]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
push 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x28]
jmp 0x418c7d
mov edi, dword [edi]
lea eax, [ebp - 0x394]
push 0x2c8
push 0
push eax
call fcn.004cebf0
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 0x418a79
mov edx, dword [ebx + 0x14]
mov edi, dword [edx]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 4], eax
je 0x418e01
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x418e01
mov eax, dword [esi + 0x70]
lea edi, [esi + 0x70]
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1f4
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_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 0x418ad6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x418ae4
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.00409a40
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.004091b0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x418b22
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x418b30
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.00409a40
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 0x418ba2
mov edx, dword [ebp - 0x40]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x418b83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e2a
push edx
push ecx
call fcn.004b4fdc
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x34]
call fcn.004097b0
push 0x4039d0
push 1
push 0x48
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0
push eax
call fcn.004b4ec7
push 0
push 4
push 0x52e2c0
push 2
mov ecx, edi
call sym.project_sun.exe_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.00419a80
mov eax, dword [edi]
mov ecx, edi
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1c9
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push 0x1c7
call dword [eax + 0x18]
mov eax, dword [ebp - 0x2e0]
lea ecx, [ebp - 0x38]
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
cdq
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_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.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_struct_asmjit::Operand_const_asmjit::noOperand
push sym.project_sun.exe_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 0x418cab
mov dword [ebp - 0x14], 0xc00000a0
jmp 0x418d7b
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 0x418d7b
mov eax, dword [edi]
mov ecx, dword [edi + 0x2c]
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x418d29
test ecx, ecx
je 0x418cfc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], eax
jmp 0x418d07
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 0x418d6f
test ecx, ecx
je 0x418d34
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
jmp 0x418d42
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 0x418d9a
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp - 0x14], 0
jl 0x418e01
push 0x4e20
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x418dbe
mov dword [ebp - 0x14], 0xc00000a0
jmp 0x418e01
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 0x418de3
mov dword [ebp - 0x14], 0xc0000141
jmp 0x418e01
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 0x418e0d
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
call fcn.004e34cc
call fcn.004e34cc
int3