Function at 0x51bd20
Capabilities:
Check for trap flag exception
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x55df78
push 0x52f9a0
mov eax, dword fs:[0]
push eax
add esp, 0xfffff8a4
mov eax, dword [0x559d20]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 1
mov eax, dword [0x55802c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [0x55824c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [0x558250]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0x51acb0
call fcn.0052f947
add esp, 4
mov eax, dword [0x558384]
xor eax, dword [0x5583a8]
push eax
call dword [0x5581b0]
push eax
push 0x55b118
lea ecx, [ebp - 0x130]
push ecx
call fcn.0052f8c2
add esp, 0x10
lea edx, [ebp - 0x130]
push edx
push 0
push 0x1f0001
call dword [0x5580a8]
test eax, eax
je 0x51bde2
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x51bf83
mov ecx, dword [0x5583e4]
xor ecx, dword [0x558388]
xor ecx, dword [0x558380]
and ecx, 0x20
je 0x51bf83
mov edx, dword [0x5583fc]
xor edx, dword [0x5583c0]
xor edx, dword [0x558384]
push edx
push 0x55b110
lea eax, [ebp - 0x130]
push eax
call fcn.0052f8c2
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
call dword [0x5580a4]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x51bf83
call dword [0x558078]
cmp eax, 0xb7
jne 0x51bf83
push 0x7530
mov edx, dword [ebp - 0x138]
push edx
call dword [0x5580a0]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x51be96
cmp dword [ebp - 0x13c], 0x80
jne 0x51bf79
mov eax, dword [0x5583fc]
xor eax, dword [0x5583c0]
xor eax, dword [0x558384]
push eax
push 0x55b108
lea ecx, [ebp - 0x130]
push ecx
call fcn.0052f8c2
add esp, 0xc
mov dword [ebp - 0x144], 0
jmp 0x51bed7
mov edx, dword [ebp - 0x144]
add edx, 1
mov dword [ebp - 0x144], edx
cmp dword [ebp - 0x144], 0x12c
jge 0x51bf10
lea eax, [ebp - 0x130]
push eax
push 0x55b0fc
call dword [0x558254]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x51bf06
jmp 0x51bf10
push 0x64
call dword [0x55819c]
jmp 0x51bec8
cmp dword [ebp - 0x140], 0
je 0x51bf6c
mov ecx, dword [0x5583fc]
xor ecx, dword [0x5583c0]
xor ecx, dword [0x558384]
mov dword [ebp - 0x150], ecx
mov edx, dword [0x55ee70]
push edx
call fcn.0052f2a0
add esp, 4
add eax, 1
mov dword [ebp - 0x14c], eax
mov eax, dword [0x55ee70]
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x150]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x140]
push edx
call dword [0x55828c]
mov eax, dword [ebp - 0x138]
push eax
call dword [0x55809c]
mov eax, 1
jmp 0x51c4e1
push 1
call fcn.0051c500
add esp, 4
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
je 0x51c17d
mov edx, dword [0x5583e4]
xor edx, dword [0x558388]
xor edx, dword [0x558380]
and edx, 0x40
jne 0x51c17d
push 0x200
lea eax, [ebp - 0x350]
push eax
push 0x55b0f4
call dword [0x558068]
test eax, eax
jne 0x51c17d
push 0xc8
push 0x23
lea ecx, [ebp - 0x350]
push ecx
call fcn.0052d210
add esp, 0xc
mov byte [ebp - 0x288], 0
mov dword [ebp - 0x454], 1
jmp 0x51c00b
mov edx, dword [ebp - 0x454]
add edx, 1
mov dword [ebp - 0x454], edx
cmp dword [ebp - 0x454], 0x40
jg 0x51c045
mov eax, dword [ebp - 0x454]
push eax
push 0x55b0ec
lea ecx, [ebp - 0x450]
push ecx
call fcn.0052f8c2
add esp, 0xc
lea edx, [ebp - 0x350]
push edx
lea eax, [ebp - 0x450]
push eax
call dword [0x558098]
jmp 0x51bffc
mov ecx, dword [0x5583e4]
xor ecx, dword [0x558388]
xor ecx, dword [0x558380]
and ecx, 0x10
jne 0x51c17d
lea edx, [ebp - 0x5b8]
push edx
call dword [0x558094]
mov al, byte [0x55ae4c]
mov byte [ebp - 0x560], al
push 0x103
push 0
lea ecx, [ebp - 0x55f]
push ecx
call fcn.0052d210
add esp, 0xc
mov dl, byte [0x55ae4c]
mov byte [ebp - 0x6c0], dl
push 0x103
push 0
lea eax, [ebp - 0x6bf]
push eax
call fcn.0052d210
add esp, 0xc
cmp dword [0x55ee68], 1
jne 0x51c0e4
cmp dword [ebp - 0x5ac], 0
jne 0x51c0e4
lea ecx, [ebp - 0x560]
push ecx
call fcn.0051d6b0
add esp, 4
movzx edx, al
test edx, edx
je 0x51c0e4
lea eax, [ebp - 0x560]
mov dword [ebp - 0x5ac], eax
push 0x104
lea ecx, [ebp - 0x6c0]
push ecx
push 0
call dword [0x5581bc]
test eax, eax
jne 0x51c103
xor eax, eax
jmp 0x51c4e1
lea edx, [ebp - 0x570]
push edx
lea eax, [ebp - 0x5b8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [0x558090]
push eax
lea ecx, [ebp - 0x6c0]
push ecx
call dword [0x55808c]
test eax, eax
jne 0x51c161
mov dword [0x55f0a8], 6
call dword [0x558078]
push eax
push 0x55b0cc
push 0x55f0b0
call fcn.0052f8c2
add esp, 0xc
xor eax, eax
jmp 0x51c4e1
push 0x2710
mov edx, dword [ebp - 0x570]
push edx
call dword [0x558258]
mov eax, 1
jmp 0x51c4e1
mov eax, dword [0x5583e4]
xor eax, dword [0x558388]
xor eax, dword [0x558380]
and eax, 0x10
je 0x51c44e
mov ecx, dword [0x558384]
xor ecx, dword [0x5583a8]
push ecx
call dword [0x5581b0]
push eax
push 0x55b118
lea edx, [ebp - 0x130]
push edx
call fcn.0052f8c2
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
push 0
push 0x1f0001
call dword [0x5580a8]
test eax, eax
jne 0x51c44c
push 1
call dword [0x558088]
push eax
call dword [0x558084]
mov byte [ebp - 0x6c1], 0
push 0x55b0c0
call dword [0x55807c]
mov dword [ebp - 0x6c8], eax
cmp dword [ebp - 0x6c8], 0
je 0x51c23d
push 0x55b0ac
mov ecx, dword [ebp - 0x6c8]
push ecx
call dword [0x558074]
mov dword [ebp - 0x764], eax
cmp dword [ebp - 0x764], 0
je 0x51c23d
call dword [ebp - 0x764]
test eax, eax
je 0x51c23d
mov byte [ebp - 0x6c1], 1
mov dword [ebp - 0x760], 0x94
lea edx, [ebp - 0x760]
push edx
call dword [0x5581a8]
cmp dword [ebp - 0x750], 2
je 0x51c2c7
mov byte [ebp - 0x765], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xfffffffe
jmp 0x51c2b5
movzx edx, byte [ebp - 0x765]
test edx, edx
jne 0x51c2c7
mov byte [0x55f3a0], 1
cmp dword [ebp - 0x750], 2
jne 0x51c331
push ecx
bswap ecx
not ecx
push eax
not eax
mov eax, 0x6c65696d
xchg ecx, eax
mov ecx, 0xdeadc0de
xchg ecx, eax
not eax
pop eax
not ecx
pop ecx
pushfd
pushal
xor ebx, ebx
je 0x51c2f3
add ebp, ebx
and ch, bl
jmp 0x51c314
xor ebx, ebx
je 0x51c2f7
jmp 0x51c306
mov ecx, 0x34f9c987
nop
stc
je 0x51c30a
jmp 0x51c33a
xor eax, eax
je 0x51c2fc
mov eax, 0x4840c987
test eax, eax
jne 0x51c2f0
jmp 0x92b86079
popal
popfd
xchg dx, ax
xchg dx, ax
mov eax, eax
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x51c348
jmp 0x51c3b9
jo 0x51c33a
jl 0x51c338
jmp 0x51c33c
je 0x51c335
jmp 0x51c335
mov eax, dword fs:[0x20]
or eax, eax
jne 0x51c348
jmp 0x51c3b9
pushal
xor eax, eax
jne 0x51c34f
jmp 0x51c364
jmp 0x51c384
xor eax, eax
jne 0x51c36c
jp 0x51c362
jo 0x51c366
jmp 0x51c367
jb 0x51c36b
jns 0x51c350
call dword [0x74097900]
invalid
jns 0x51c36d
je 0x51c356
jmp 0x51c2ef
xchg ebx, ebx
jp 0x51c35b
mov al, byte [0x5c66133]
xchg esp, eax
out dx, al
push ebp
add byte [ecx], al
xor esp, dword [ecx - 0x3a]
add eax, 0x55ee94
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x55ee94], 1
push eax
not eax
bswap eax
pop eax
jae 0x51c37d
pushfd
pushal
jmp 0x51c3ac
sub edx, edx
jo 0x51c392
jmp 0x51c3a3
xor ecx, ecx
je 0x51c38a
jmp 0x51c39c
stc
xor ecx, 3
je 0x51c322
jmp 0x51c399
jmp 0x51c3a7
jae 0x51c395
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x51c38c
jmp 0x51c386
sbb al, 0xdb
jmp 0x51c3af
jmp 0x51c380
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
movzx eax, byte [ebp - 0x6c1]
test eax, eax
je 0x51c3f2
call dword [0x5581b0]
push eax
push 0x55b0a4
lea ecx, [ebp - 0x130]
push ecx
call fcn.0052f8c2
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
push 0
push 0
call dword [0x5580a4]
jmp 0x51c44c
cmp dword [0x55ee68], 0
sete al
push eax
call fcn.0051e4d0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x51c438
mov dword [0x55f0a8], 6
call dword [0x558078]
push eax
push 0x55b094
push 0x55f0b0
call fcn.0052f8c2
add esp, 0xc
xor eax, eax
jmp 0x51c4e1
push 0
call fcn.0051c500
add esp, 4
mov eax, 1
jmp 0x51c4e1
jmp 0x51c46a
mov edx, dword [0x5583ac]
xor edx, dword [0x558388]
xor edx, dword [0x558380]
and edx, 2
je 0x51c46a
call fcn.00519e20
call fcn.0051ace0
mov dword [ebp - 0x134], eax
push 0
call fcn.0051c500
add esp, 4
push 0
call fcn.0052f947
add esp, 4
cmp dword [ebp - 0x134], 1
jne 0x51c4a6
push 0x55ee68
call dword [0x55ee90]
add esp, 4
mov dword [ebp - 0x134], eax
push 0x51acb0
call fcn.0052f947
add esp, 4
cmp dword [0x55ee8c], 0
je 0x51c4c2
call dword [0x55ee8c]
cmp dword [0x55f0a0], 0
je 0x51c4db
push 0
push 0
mov eax, dword [0x55f09c]
push eax
call dword [0x55f0a0]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0052d965
mov esp, ebp
pop ebp
ret