Function at 0x54b0d4
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [0x560cd4]
xor eax, eax
push ebp
push 0x54b48a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5609dc], 0
jne 0x54b45f
mov byte [0x5609dc], 1
xor eax, eax
push ebp
push 0x54b458
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 8]
cmp byte [esi + 0x180], 0
je 0x54b2a9
xor eax, eax
push ebp
push 0x54b1b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x564894], 0
je 0x54b1a6
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x564894]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetExitCodeThread
test eax, eax
je 0x54b1a6
mov eax, dword [0x564894]
mov eax, dword [eax + 0x40]
mov edx, dword [esi + 0x19c]
call fcn.00404d8c
jne 0x54b1a6
push 0
mov ecx, 0x54b498
mov edx, 0x54b4a0
mov eax, dword [0x561040]
mov eax, dword [eax]
call fcn.0047e2ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004043c8
jmp 0x54b45f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54b1ca
push 1
mov ecx, 0x54b4d4
mov edx, 0x54b4dc
mov eax, dword [0x561040]
mov eax, dword [eax]
call fcn.0047e2ac
dec eax
jne 0x54b29f
xor eax, eax
push ebp
push 0x54b285
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x564894], 0
je 0x54b235
mov eax, dword [0x564894]
call fcn.00543794
mov eax, dword [0x5610d0]
mov eax, dword [eax]
mov edx, 0xc8
call fcn.0052cad4
push 0
mov eax, dword [0x564894]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x564894]
call fcn.004250b4
mov eax, dword [0x5610d0]
mov eax, dword [eax]
mov edx, 0x64
call fcn.0052cad4
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x19c]
call fcn.00404a18
lea ecx, [ebp - 0x2c]
mov eax, dword [0x560b8c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
call fcn.0041fb4c
push 0
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00557a0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54b29f
call fcn.004043c8
jmp 0x54b45f
mov eax, dword [0x564844]
mov edx, 0x54b52c
call fcn.00404d8c
jne 0x54b2c7
mov eax, dword [0x5611d4]
mov dword [eax], 1
jmp 0x54b2f4
mov eax, dword [0x564844]
mov edx, 0x54b53c
call fcn.00404d8c
je 0x54b2e9
mov eax, dword [0x564844]
mov edx, 0x54b54c
call fcn.00404d8c
jne 0x54b2f4
mov eax, dword [0x5611d4]
mov dword [eax], 2
mov eax, dword [0x561340]
mov eax, dword [eax]
mov dx, 0xffed
call fcn.0047c0bc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x52819c]
call fcn.004767e4
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [0x5610d0]
mov eax, dword [eax]
call fcn.0052cc6c
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
call fcn.004775c8
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
call fcn.004775f8
mov eax, dword [ebx]
mov edx, dword [ebp - 0x14]
call fcn.0045c064
mov eax, dword [ebx]
mov edx, dword [ebp - 0x18]
call fcn.0045c040
mov eax, dword [0x564844]
mov edx, 0x54b52c
call fcn.00404d8c
jne 0x54b37b
lea eax, [ebp - 0x20]
mov edx, 0x54b55c
call fcn.00404a18
jmp 0x54b3b9
mov eax, dword [0x564844]
mov edx, 0x54b53c
call fcn.00404d8c
jne 0x54b39b
lea eax, [ebp - 0x20]
mov edx, 0x54b574
call fcn.00404a18
jmp 0x54b3b9
mov eax, dword [0x564844]
mov edx, 0x54b54c
call fcn.00404d8c
jne 0x54b3b9
lea eax, [ebp - 0x20]
mov edx, 0x54b58c
call fcn.00404a18
lea ecx, [ebp - 0x30]
mov edx, dword [0x560a54]
mov edx, dword [edx]
mov eax, dword [0x5610d0]
mov eax, dword [eax]
call fcn.0052d014
push dword [ebp - 0x30]
push 0x54b5a4
push dword [ebp - 0x20]
push 0x54b5a4
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c8]
call fcn.0045c8d0
push dword [ebp - 0x34]
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00404d00
mov eax, dword [ebx]
mov eax, dword [eax + 0x300]
add eax, 0x80
mov edx, dword [ebp - 0x20]
call fcn.004049d4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.005582a4
mov eax, dword [0x564814]
call fcn.0047ab34
mov eax, dword [0x561340]
mov eax, dword [eax]
xor edx, edx
call fcn.0047c0bc
mov eax, dword [ebx]
call fcn.0047ab3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54b45f
mov byte [0x5609dc], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54b491
lea eax, [ebp - 0x34]
call fcn.00404980
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004049a4
lea eax, [ebp - 0x20]
call fcn.00404980
ret