Function at 0x489355
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, 0x2500
call fcn.005c1510
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x24fc], eax
push ebx
push ebp
push esi
push edi
push 0x108
xor ebx, ebx
lea eax, [esp + 0x34]
push ebx
push eax
mov ebp, edx
mov edi, ecx
call fcn.005c37d0
add esp, 0xc
test edi, edi
je 0x4893d5
cmp dword [edi + 0x1c], ebx
je 0x4893ee
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
lea esi, [edi + 0x20]
push ebx
push esi
call fcn.005c37d0
add esp, 0xc
mov dword [esi], 0x10007
push esi
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x4893ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4893e3
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
test ebx, ebx
je 0x4893ee
xor eax, eax
jmp 0x4895f4
test edi, edi
je 0x4893fa
mov eax, dword [edi + 0xd8]
jmp 0x489401
mov eax, dword [esp + 0x1f0]
push 3
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
pop edx
mov dword [esp + 0x3c], edx
test edi, edi
je 0x48941e
mov eax, dword [edi + 0xd4]
jmp 0x489425
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
test edi, edi
je 0x48943d
mov eax, dword [edi + 0xe4]
jmp 0x489444
mov eax, dword [esp + 0x1fc]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], edx
mov byte [ebp], cl
test edi, edi
je 0x48945c
mov esi, dword [edi + 0x1c]
jmp 0x489464
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
test edi, edi
je 0x48946d
mov eax, dword [edi + 0x18]
jmp 0x489473
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
push ecx
push dword [sym.imp.dbghelp.dll_SymGetModuleBase64]
push dword [sym.imp.dbghelp.dll_SymFunctionTableAccess64]
push ecx
push ecx
lea ecx, [esp + 0x44]
push ecx
push esi
push eax
push 0x14c
call dword [sym.imp.dbghelp.dll_StackWalk64]
test eax, eax
je 0x4895f2
mov esi, dword [esp + 0x30]
mov eax, esi
mov ecx, dword [esp + 0x34]
or eax, ecx
mov dword [esp + 0x14], ecx
je 0x4895f2
mov dword [esp + 0x18], esi
xorps xmm0, xmm0
mov dword [esp + 0x1c], ecx
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x508], 0x58
mov dword [esp + 0x558], 0x7d0
mov dword [esp + 0x1508], 0x18
test edi, edi
je 0x4894f1
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x4894fb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x508]
push edx
lea edx, [esp + 0x2c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.dbghelp.dll_SymFromAddr]
test eax, eax
je 0x4895a9
lea eax, [esp + 0x55c]
push eax
mov eax, 0xfec
sub eax, ebx
push 0x757228
push eax
lea eax, [ebx + ebp]
push eax
call fcn.0040117f
add esp, 0x10
add ebx, eax
test edi, edi
je 0x489547
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x48954d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x1508]
push ecx
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.dbghelp.dll_SymGetLineFromAddr64]
test eax, eax
mov eax, 0xfec
je 0x489593
push dword [esp + 0x1510]
sub eax, ebx
push dword [esp + 0x1518]
push str.____s:_d__n
push eax
lea eax, [ebx + ebp]
push eax
call fcn.0040117f
add esp, 0x14
jmp 0x4895de
sub eax, ebx
push 0x757238
push eax
lea eax, [ebx + ebp]
push eax
call fcn.0040117f
add esp, 0xc
jmp 0x4895de
lea eax, [esp + 0x408]
push eax
push 8
pop edx
lea ecx, [esp + 0x1c]
call fcn.00485bd0
lea eax, [esp + 0x408]
push eax
mov eax, 0xfec
sub eax, ebx
push str._FuncAddr:_0x_s__n
push eax
lea eax, [ebx + ebp]
push eax
call fcn.0040117f
add esp, 0x10
add ebx, eax
test edi, edi
je 0x48945c
cmp dword [edi + 0x1c], 0
jne 0x489453
mov eax, ebp
mov ecx, dword [esp + 0x250c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x2500
ret