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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558da0
push 0x52f320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff8c4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x24], 1
mov eax, dword [0x55402c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [0x554218]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [0x55421c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0x519fac
call fcn.0052f1fc
add esp, 4
mov eax, dword [0x5543f4]
xor eax, dword [0x5543fc]
push eax
call dword [0x5541b8]
push eax
push 0x5546a8
lea ecx, [ebp - 0x128]
push ecx
call fcn.0052f1aa
add esp, 0x10
lea edx, [ebp - 0x128]
push edx
push 0
push 0x1f0001
call dword [0x5540a8]
test eax, eax
je 0x51b0fd
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
je 0x51b2a4
mov ecx, dword [0x5543c8]
xor ecx, dword [0x5543d8]
xor ecx, dword [0x5543ac]
and ecx, 0x20
test ecx, ecx
je 0x51b2a4
mov edx, dword [0x5543e4]
xor edx, dword [0x5543f0]
xor edx, dword [0x5543f4]
push edx
push 0x5546a0
lea eax, [ebp - 0x128]
push eax
call fcn.0052f1aa
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push 0
push 0
call dword [0x5540a4]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x51b2a4
call dword [0x554078]
cmp eax, 0xb7
jne 0x51b2a4
push 0x7530
mov edx, dword [ebp - 0x12c]
push edx
call dword [0x5540a0]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x51b1b7
cmp dword [ebp - 0x130], 0x80
jne 0x51b29a
mov eax, dword [0x5543e4]
xor eax, dword [0x5543f0]
xor eax, dword [0x5543f4]
push eax
push 0x554698
lea ecx, [ebp - 0x128]
push ecx
call fcn.0052f1aa
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x51b1f8
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x12c
jge 0x51b231
lea eax, [ebp - 0x128]
push eax
push 0x55468c
call dword [0x554220]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x51b227
jmp 0x51b231
push 0x64
call dword [0x5541a4]
jmp 0x51b1e9
cmp dword [ebp - 0x134], 0
je 0x51b28d
mov ecx, dword [0x5543e4]
xor ecx, dword [0x5543f0]
xor ecx, dword [0x5543f4]
mov dword [ebp - 0x144], ecx
mov edx, dword [0x55aea0]
push edx
call fcn.0052eed0
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [0x55aea0]
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x134]
push edx
call dword [0x554280]
mov eax, dword [ebp - 0x12c]
push eax
call dword [0x55409c]
mov eax, 1
jmp 0x51b804
push 1
call fcn.0051b815
add esp, 4
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x51b49f
mov edx, dword [0x5543c8]
xor edx, dword [0x5543d8]
xor edx, dword [0x5543ac]
and edx, 0x40
test edx, edx
jne 0x51b49f
push 0x200
lea eax, [ebp - 0x344]
push eax
push 0x554684
call dword [0x554068]
test eax, eax
jne 0x51b49f
push 0xc8
push 0x23
lea ecx, [ebp - 0x344]
push ecx
call fcn.0052ebc0
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x51b333
mov edx, dword [ebp - 0x448]
add edx, 1
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0x40
jg 0x51b36d
mov eax, dword [ebp - 0x448]
push eax
push 0x55467c
lea ecx, [ebp - 0x444]
push ecx
call fcn.0052f1aa
add esp, 0xc
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x444]
push eax
call dword [0x554098]
jmp 0x51b324
mov ecx, dword [0x5543c8]
xor ecx, dword [0x5543d8]
xor ecx, dword [0x5543ac]
and ecx, 0x10
test ecx, ecx
jne 0x51b49f
lea edx, [ebp - 0x5a0]
push edx
call dword [0x554094]
mov al, byte [0x55ae88]
mov byte [ebp - 0x6a4], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x6a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x55ae88]
mov byte [ebp - 0x55c], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x55b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x55ae98], 1
jne 0x51b408
cmp dword [ebp - 0x594], 0
jne 0x51b408
lea edx, [ebp - 0x6a4]
push edx
call fcn.0051ccb0
add esp, 4
and eax, 0xff
test eax, eax
je 0x51b408
lea eax, [ebp - 0x6a4]
mov dword [ebp - 0x594], eax
push 0x104
lea ecx, [ebp - 0x55c]
push ecx
push 0
call dword [0x5541c4]
test eax, eax
jne 0x51b427
xor eax, eax
jmp 0x51b804
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x5a0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [0x554090]
push eax
lea ecx, [ebp - 0x55c]
push ecx
call dword [0x55408c]
test eax, eax
jne 0x51b483
mov dword [0x55b0d8], 6
call dword [0x554078]
push eax
push 0x55465c
push 0x55b0dc
call fcn.0052f1aa
add esp, 0xc
xor eax, eax
jmp 0x51b804
push 0x2710
mov edx, dword [ebp - 0x458]
push edx
call dword [0x554224]
mov eax, 1
jmp 0x51b804
mov eax, dword [0x5543c8]
xor eax, dword [0x5543d8]
xor eax, dword [0x5543ac]
and eax, 0x10
test eax, eax
je 0x51b77b
mov ecx, dword [0x5543f4]
xor ecx, dword [0x5543fc]
push ecx
call dword [0x5541b8]
push eax
push 0x5546a8
lea edx, [ebp - 0x128]
push edx
call fcn.0052f1aa
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
push 0
push 0x1f0001
call dword [0x5540a8]
test eax, eax
jne 0x51b779
push 1
call dword [0x554088]
push eax
call dword [0x554084]
mov byte [ebp - 0x6a8], 0
push 0x554650
call dword [fcn.0055407c]
mov dword [ebp - 0x6ac], eax
cmp dword [ebp - 0x6ac], 0
je 0x51b561
push 0x55463c
mov ecx, dword [ebp - 0x6ac]
push ecx
call dword [fcn.00554074]
mov dword [ebp - 0x744], eax
cmp dword [ebp - 0x744], 0
je 0x51b561
call dword [ebp - 0x744]
test eax, eax
je 0x51b561
mov byte [ebp - 0x6a8], 1
mov dword [ebp - 0x740], 0x94
lea edx, [ebp - 0x740]
push edx
call dword [fcn.005541b0]
cmp dword [ebp - 0x730], 2
je 0x51b5ed
mov byte [ebp - 0x748], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xffffffff
jmp 0x51b5d7
mov eax, dword [ebp - 0x748]
and eax, 0xff
test eax, eax
jne 0x51b5ed
mov byte [0x55b3e0], 1
cmp dword [ebp - 0x730], 2
jne 0x51b657
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 0x51b619
add ebp, ebx
and ch, bl
jmp 0x51b63a
xor ebx, ebx
je 0x51b61d
jmp 0x51b62c
mov ecx, 0x34f9c987
nop
stc
je 0x51b630
jmp 0x51b660
xor eax, eax
je 0x51b622
mov eax, 0x4840c987
test eax, eax
jne 0x51b616
jmp 0x92b8539f
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 0x51b66e
jmp 0x51b6df
jo 0x51b660
jl 0x51b65e
jmp 0x51b662
je 0x51b65b
jmp 0x51b65b
mov eax, dword fs:[0x20]
or eax, eax
jne 0x51b66e
jmp 0x51b6df
pushal
xor eax, eax
jne 0x51b675
jmp 0x51b68a
jmp 0x51b6aa
xor eax, eax
jne 0x51b692
jp 0x51b688
jo 0x51b68c
jmp 0x51b68d
jb 0x51b691
jns 0x51b676
call dword [0x74097900]
invalid
jns 0x51b693
je 0x51b67c
jmp 0x51b615
xchg ebx, ebx
jp 0x51b681
mov al, byte [0x5c66133]
les esi, [eax + 0x50010055]
xor esp, dword [ecx - 0x3a]
add eax, 0x55b0c4
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x55b0c4], 1
push eax
not eax
bswap eax
pop eax
jae 0x51b6a3
pushfd
pushal
jmp 0x51b6d2
sub edx, edx
jo 0x51b6b8
jmp 0x51b6c9
xor ecx, ecx
je 0x51b6b0
jmp 0x51b6c2
stc
xor ecx, 3
je 0x51b648
jmp 0x51b6bf
jmp 0x51b6cd
jae 0x51b6bb
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x51b6b2
jmp 0x51b6ac
sbb al, 0xdb
jmp 0x51b6d5
jmp 0x51b6a6
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov ecx, dword [ebp - 0x6a8]
and ecx, 0xff
test ecx, ecx
je 0x51b71d
call dword [0x5541b8]
push eax
push 0x554634
lea edx, [ebp - 0x128]
push edx
call fcn.0052f1aa
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0
push 0
call dword [0x5540a4]
jmp 0x51b779
xor ecx, ecx
cmp dword [0x55ae98], 0
sete cl
push ecx
call fcn.0051dea8
add esp, 4
and eax, 0xff
test eax, eax
jne 0x51b765
mov dword [0x55b0d8], 6
call dword [0x554078]
push eax
push 0x554624
push 0x55b0dc
call fcn.0052f1aa
add esp, 0xc
xor eax, eax
jmp 0x51b804
push 0
call fcn.0051b815
add esp, 4
mov eax, 1
jmp 0x51b804
jmp 0x51b799
mov edx, dword [0x554380]
xor edx, dword [0x5543d8]
xor edx, dword [0x5543ac]
and edx, 2
test edx, edx
je 0x51b799
call fcn.00519482
call fcn.00519fdb
mov dword [ebp - 0x1c], eax
push 0
call fcn.0051b815
add esp, 4
push 0
call fcn.0052f1fc
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x51b7cc
push 0x55ae98
call dword [0x55aec0]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x519fac
call fcn.0052f1fc
add esp, 4
cmp dword [fcn.0055aebc], 0
je 0x51b7e8
call dword [fcn.0055aebc]
cmp dword [fcn.0055b0d0], 0
je 0x51b801
push 0
push 0
mov eax, dword [0x55b0cc]
push eax
call dword [fcn.0055b0d0]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret