Function at 0x50ac70
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x60458c
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x458], eax
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov ecx, dword [0x635c50]
mov esi, dword [esp + 0x47c]
mov dword [esp + 0x2c], esi
test cl, 1
jne 0x50b449
xorps xmm0, xmm0
mov dword [0x635c6c], 0
movdqu xmmword [esp + 0x50], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov eax, dword [0x635c54]
mov esi, dword [0x6292c0]
shr eax, 0x1f
mov dword [esp + 0x470], 0
test al, 1
je 0x50ad37
call esi
mov dword [esp + 0x58], eax
call dword [0x62927c]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x50]
mov eax, dword [0x635c54]
and eax, 0x3fffffff
push eax
call fcn.00529930
push 0x9c
push 0
call dword [0x6292c4]
push eax
call dword [0x6292c8]
mov edi, dword [0x629280]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x50ad64
push 0x12
call esi
push eax
call edi
mov eax, dword [esp + 0x30]
push eax
mov dword [eax], 0x9c
call dword [0x62926c]
test eax, eax
jne 0x50ad91
push dword [esp + 0x30]
push eax
call dword [0x6292c4]
push eax
call dword [0x629284]
push 0xff
call esi
push eax
call edi
call fcn.005e1724
test eax, eax
jne 0x50ada1
push 0x1c
call esi
push eax
call edi
call fcn.005e19b0
test eax, eax
jne 0x50adb1
push 0x10
call esi
push eax
call edi
call fcn.005e1a43
test eax, eax
jns 0x50adc4
push 0x1b
call fcn.005e1d93
add esp, 4
push 1
call fcn.005e1dbe
add esp, 4
test eax, eax
je 0x50addb
push eax
call fcn.005e1d93
add esp, 4
call fcn.004ea510
mov esi, dword [esp + 0x30]
mov ecx, 0x27
mov dword [esp + 0x28], eax
lea edi, [eax + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov ecx, esi
call fcn.004f8540
mov ecx, esi
call fcn.004f8510
push dword [esp + 0x30]
push 0
call dword [0x6292c4]
push eax
call dword [0x629284]
call fcn.004ea3f0
mov ecx, dword [0x629260]
mov edi, eax
push 0
mov dword [esp + 0x34], edi
mov dword [0x63791c], ecx
mov dword [edi + 0x1c0], ecx
call ecx
mov dword [esi + 0x28], eax
mov eax, 0x601
cmp word [esi + 6], ax
push 0x3ff
setae al
mov byte [edi + 0x2d1], al
mov eax, 0x602
cmp word [esi + 6], ax
mov esi, 0x635c50
push 0
setae al
mov byte [edi + 0x2d2], al
lea eax, [esp + 0x6d]
sub esi, dword [0x635c60]
push eax
mov byte [esp + 0x70], 0
call fcn.005e0f30
add esp, 0xc
lea eax, [esp + 0x64]
push 0x400
push eax
push esi
call dword [0x629264]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [eax + 8]
mov dword [eax + 0x24], esi
call fcn.005429a0
call fcn.0050b940
mov dword [esp + 0x60], 0
lea eax, [esp + 0x60]
mov byte [esp + 0x470], 1
push eax
call fcn.0050b7c0
add esp, 4
mov ecx, edi
push dword [esp + 0x60]
call fcn.004f4f50
test al, al
jne 0x50aee9
push 0xff
call dword [0x6292c0]
push eax
call dword [0x629280]
mov eax, dword [0x635c50]
shr eax, 0xa
test al, 1
je 0x50af60
cmp dword [edi + 0x450], 0
je 0x50af60
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x38]
call fcn.00543e30
lea eax, [esp + 0xc]
mov byte [esp + 0x470], 2
push eax
lea ecx, [esp + 0x38]
call fcn.005442e0
add eax, 4
mov byte [esp + 0x470], 3
cmp dword [eax + 0x14], 0x10
jb 0x50af35
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x450]
call eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x470], 2
call fcn.00543f30
lea ecx, [esp + 0x34]
mov byte [esp + 0x470], 1
call fcn.00543f30
call fcn.004ea480
mov edi, eax
push edi
call fcn.005024e0
mov eax, dword [0x63724c]
add esp, 4
test eax, 0x800000
jne 0x50afc8
mov esi, dword [0x637700]
lea ecx, [esi + 0xa4]
call fcn.004f64c0
int3
mov ecx, dword [esp + 0x28]
call fcn.004f8480
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push 0x635c50
call fcn.004f1e90
test dword [0x63724c], 0x800000
jne 0x50b00c
mov esi, dword [0x637700]
lea ecx, [esi + 0xa4]
call fcn.004f64c0
invalid
push 0x635c50
mov ecx, edi
call fcn.00502910
test al, al
jne 0x50b108
mov eax, dword [0x635c50]
or eax, 1
mov dword [0x635c50], eax
shr eax, 8
test al, 1
je 0x50b045
push dword [esp + 0x2c]
call fcn.0050b670
add esp, 4
jmp 0x50b0db
mov ecx, dword [0x6378c0]
test ecx, ecx
je 0x50b05f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x6378c0], 0
mov ecx, dword [0x6378dc]
test ecx, ecx
je 0x50b079
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x6378dc], 0
mov ecx, dword [0x6378fc]
test ecx, ecx
je 0x50b093
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x6378fc], 0
mov ecx, dword [0x6378b0]
test ecx, ecx
je 0x50b0ad
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x6378b0], 0
mov esi, dword [0x638c68]
test esi, esi
je 0x50b0d1
mov ecx, esi
call fcn.004e79c0
push esi
call fcn.005df995
add esp, 4
mov dword [0x638c68], 0
call fcn.005e1a26
call fcn.005e1739
mov esi, dword [esp + 0x60]
mov edi, dword [0x635c64]
mov byte [esp + 0x470], 0
test esi, esi
je 0x50b101
mov ecx, esi
call fcn.004e7540
push esi
call fcn.005df995
add esp, 4
mov eax, edi
jmp 0x50b4b3
mov eax, dword [edi + 0xd0]
shr eax, 8
test al, 1
jne 0x50b148
mov eax, dword [edi + 0xcc]
shr eax, 0x17
test al, 1
jne 0x50b148
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x2e8], 0
je 0x50b148
mov eax, dword [esi + 0x2f0]
push 0
call eax
mov eax, dword [esi + 0x2e8]
push 0x50b650
push 1
call eax
test dword [0x63724c], 0x800000
jne 0x50b172
mov esi, dword [0x637700]
lea ecx, [esi + 0xa4]
call fcn.004f64c0
invalid
push 0x635c50
mov ecx, edi
call fcn.00503b00
call fcn.00528770
test dword [0x63724c], 0x800000
jne 0x50b1b2
mov esi, dword [0x637700]
lea ecx, [esi + 0xa4]
call fcn.004f64c0
lea ecx, [esi + 0xa4]
mov byte [5], 5
call fcn.004f6520
mov eax, dword [edi + 0xcc]
mov ecx, edi
push dword [0x637621]
shr eax, 0x11
push dword [0x637625]
and eax, 0xffffff01
mov dword [esp + 0x34], eax
call fcn.004f1c50
cmp byte [esp + 0x30], 0
push eax
sete al
movzx eax, al
push eax
push dword [0x637629]
call fcn.0050a1d0
mov ecx, eax
call fcn.004f7510
mov ecx, edi
mov dword [0x637629], 0
mov dword [0x637621], 0
call fcn.004f08a0
mov eax, dword [edi + 0xd0]
mov ecx, edi
shr eax, 8
not al
and al, 1
push 0
movzx eax, al
push eax
call fcn.004f1c60
mov eax, dword [edi + 0xcc]
shr eax, 2
test al, 1
je 0x50b27c
push dword [0x637659]
mov ecx, edi
push dword [0x63765d]
call fcn.004f1c50
push eax
push dword [0x637274]
call fcn.0050a300
mov ecx, eax
call fcn.00510e50
mov dword [0x637274], 0
mov dword [0x637659], 0
mov dword [0x63765d], 0
mov ecx, dword [edi + 0xcc]
mov eax, ecx
shr eax, 3
test al, 1
je 0x50b2a4
shr ecx, 0x12
and ecx, 0xffffff01
mov dword [esp + 0x2c], ecx
call fcn.00508b60
mov ecx, dword [esp + 0x2c]
mov byte [eax + 5], cl
test dword [0x63724c], 0x800000
jne 0x50b2cf
mov esi, dword [0x637700]
lea ecx, [esi + 0xa4]
call fcn.004f64c0
in ax, 0x64
lea ecx, [esi + 0xa4]
call fcn.004f6520
push dword [0x637669]
movzx eax, word [0x6372c9]
push dword [0x637665]
mov ecx, dword [edi + 0xfc]
push dword [0x637661]
push eax
call fcn.00542130
push eax
call fcn.0050a260
mov ecx, eax
call fcn.0050a380
mov edx, dword [0x63766d]
mov eax, edx
shr eax, 0x1c
test al, 1
je 0x50b325
mov ecx, dword [0x639194]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
inc dword [eax + 0xac48]
test dword [0x63724c], 0x800000
mov dword [0x637665], 0
mov dword [0x637669], 0
jne 0x50b36e
mov esi, dword [0x637700]
lea ecx, [esi + 0xa4]
call fcn.004f64c0
lea ecx, [esi + 0xa4]
mov byte [6], 6
call fcn.004f6520
mov edx, dword [0x63766d]
and dl, 0x30
cmp dl, 0x20
jne 0x50b3af
mov eax, dword [edi + 0xcc]
shr eax, 0x13
test al, 1
jne 0x50b3af
mov eax, dword [esp + 0x28]
mov ecx, 0x600
cmp word [eax + 6], cx
jae 0x50b3af
call fcn.004ea510
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x50b3a2
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x1c8]
call eax
call fcn.004ea510
mov ecx, dword [eax + 0x24]
mov eax, dword [0x637671]
add eax, ecx
test dword [0x63724c], 0x800000
mov dword [0x635c64], eax
jne 0x50b3ee
mov esi, dword [0x637700]
lea ecx, [esi + 0xa4]
call fcn.004f64c0
in ax, 0x64
lea ecx, [esi + 0xa4]
call fcn.004f6520
mov eax, dword [0x635c54]
and eax, 0xc0000000
cmp eax, 0x80000000
jne 0x50b41b
push dword [esp + 0x54]
push dword [esp + 0x60]
call dword [0x629278]
push dword [esp + 0x50]
push dword [esp + 0x5c]
call dword [0x629270]
or dword [0x635c50], 1
mov esi, dword [esp + 0x60]
mov byte [esp + 0x470], 0
test esi, esi
je 0x50b442
mov ecx, esi
call fcn.004e7540
push esi
call fcn.005df995
add esp, 4
mov eax, dword [0x635c64]
jmp 0x50b4b3
mov eax, ecx
shr eax, 8
test al, 1
je 0x50b4b1
mov edx, dword [0x63724c]
mov eax, edx
shr eax, 4
test al, 1
jne 0x50b4b1
cmp dword [esp + 0x478], 0
jne 0x50b442
mov eax, ecx
shr eax, 2
test al, 1
je 0x50b47d
mov eax, ecx
shr eax, 0xb
test al, 1
jne 0x50b442
push esi
test dl, dl
jns 0x50b491
call fcn.0050b670
mov eax, dword [0x635c64]
add esp, 4
jmp 0x50b4b3
or ecx, 4
push 0
mov dword [0x635c50], ecx
call fcn.0050b780
push eax
call dword [0x635c64]
push esi
call fcn.0050b670
add esp, 4
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.005e0482
add esp, 0x468
ret