Function at 0x5aa6a0
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7361c0
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00574dd0
jmp 0x5aa71c
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0x2c]
call fcn.0057fc20
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x260], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
lea ecx, [ebp - 0xa4]
call fcn.00574dd0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx]
jne 0x5aa771
mov dword [ebp - 0x4c], 1
jmp 0x5aa778
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x5aa78f
mov dword [ebp - 0x50], 1
jmp 0x5aa796
mov dword [ebp - 0x50], 0
mov dl, byte [ebp - 0x50]
mov byte [ebp - 0x12], dl
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x5aa7f3
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
call fcn.005ab210
jmp 0x5aa6ff
push 0x2710
mov ecx, dword [ebp - 0x10]
call fcn.005acd00
lea ecx, [ebp - 0x31]
push ecx
lea edx, [ebp - 0x32]
push edx
movzx eax, byte [ebp - 0x33]
push eax
lea ecx, [ebp - 0x90]
call fcn.005a2780
lea ecx, [ebp - 0x90]
call fcn.005b3510
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00574dd0
jmp 0x5aa87b
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xc8], edx
lea ecx, [ebp - 0x28]
call fcn.0057fc20
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00574dd0
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx]
jne 0x5aa8d0
mov dword [ebp - 0x5c], 1
jmp 0x5aa8d7
mov dword [ebp - 0x5c], 0
mov cl, byte [ebp - 0x5c]
mov byte [ebp - 0x13], cl
movzx edx, byte [ebp - 0x13]
test edx, edx
jne 0x5aa8ee
mov dword [ebp - 0x60], 1
jmp 0x5aa8f5
mov dword [ebp - 0x60], 0
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x14], al
movzx ecx, byte [ebp - 0x14]
test ecx, ecx
je 0x5aaa6f
mov dword [ebp - 0xf0], 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0x10
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0xf4], ecx
lea edx, [ebp - 0xf0]
push edx
mov eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jne 0x5aaa6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 6
jne 0x5aaa6a
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x128]
add edx, 4
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
mov dword [ebp - 0x248], ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x90]
call fcn.005a6510
jmp 0x5aa85e
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x90]
call fcn.005b4ca0
jmp 0x5aaa9d
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x130], edx
lea ecx, [ebp - 0x24]
call fcn.0057fc20
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x254], eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00574dd0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx]
jne 0x5aaaf5
mov dword [ebp - 0x68], 1
jmp 0x5aaafc
mov dword [ebp - 0x68], 0
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x15], cl
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x5aab13
mov dword [ebp - 0x6c], 1
jmp 0x5aab1a
mov dword [ebp - 0x6c], 0
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x16], al
movzx ecx, byte [ebp - 0x16]
test ecx, ecx
je 0x5aac32
mov edx, dword [ebp - 0x24]
add edx, 0x10
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
cmp dword [ecx + 4], 0
je 0x5aabe2
mov edx, dword [ebp - 0x24]
add edx, 0x10
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x5aabd8
push 1
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x16c], eax
jmp 0x5aabe2
mov dword [ebp - 0x16c], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x180]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.005b5380
jmp 0x5aaa80
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00574dd0
jmp 0x5aac8e
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18c], edx
lea ecx, [ebp - 0x30]
call fcn.0057fc20
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x190], ecx
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x19c], edx
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx]
jne 0x5aacdf
mov dword [ebp - 0x74], 1
jmp 0x5aace6
mov dword [ebp - 0x74], 0
mov al, byte [ebp - 0x74]
mov byte [ebp - 0x17], al
movzx ecx, byte [ebp - 0x17]
test ecx, ecx
jne 0x5aacfd
mov dword [ebp - 0x78], 1
jmp 0x5aad04
mov dword [ebp - 0x78], 0
mov dl, byte [ebp - 0x78]
mov byte [ebp - 0x18], dl
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x5aadf2
mov dword [ebp - 0x7c], 0xffffffff
mov ecx, dword [ebp - 0x30]
add ecx, 0x10
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], ecx
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x5aaded
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 5
jne 0x5aadc1
mov edx, dword [ebp - 0x3c]
push edx
push str.Suspend_Thread_failed._Aceess_denied._Last_Error_code__d
push str.CFTPThreadMan::Deinitialize
push 0x1433
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 3
mov eax, dword [ebp - 0x10]
push eax
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
jmp 0x5aaded
mov ecx, dword [ebp - 0x3c]
push ecx
push str.Suspend_Thread_failed._Last_Error_code__d
push str.CFTPThreadMan::Deinitialize
push 0x1437
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 3
mov edx, dword [ebp - 0x10]
push edx
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
jmp 0x5aac71
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], ecx
mov edx, dword [ebp - 0x1c0]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x1c4], ecx
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x20], edx
jmp 0x5aae3f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c8], eax
lea ecx, [ebp - 0x20]
call fcn.0057fc20
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x25c], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1cc], edx
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx]
mov dword [ebp - 0x1d4], edx
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], eax
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1dc], ecx
mov edx, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx]
jne 0x5aae90
mov dword [ebp - 0x80], 1
jmp 0x5aae97
mov dword [ebp - 0x80], 0
mov cl, byte [ebp - 0x80]
mov byte [ebp - 0x19], cl
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x5aaeb1
mov dword [ebp - 0x84], 1
jmp 0x5aaebb
mov dword [ebp - 0x84], 0
mov al, byte [ebp - 0x84]
mov byte [ebp - 0x1a], al
movzx ecx, byte [ebp - 0x1a]
test ecx, ecx
je 0x5ab0aa
mov dword [ebp - 0x1f4], 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0x10
mov dword [ebp - 0x1e0], edx
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], ecx
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], edx
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x1f8], ecx
lea edx, [ebp - 0x1f4]
push edx
mov eax, dword [ebp - 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebp - 0x1fc], ecx
mov edx, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], edx
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x210], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x5aafef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
push edx
push str.Unable_to_terminate_thread._Last_Error_code__d
push str.CFTPThreadMan::Deinitialize
push 0x1453
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 3
mov eax, dword [ebp - 0x10]
push eax
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
cmp dword [eax + 4], 0
je 0x5ab0a5
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x5ab09b
push 1
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x40]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x240], eax
jmp 0x5ab0a5
mov dword [ebp - 0x240], 0
jmp 0x5aae22
mov ecx, dword [ebp - 0x10]
call fcn.005b4cd0
mov byte [ebp - 0x1b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0057e460
mov al, byte [ebp - 0x1b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret